Skip to content

Commit ab57ab8

Browse files
committed
add workflow to simplify tool addition
User needs to add a repo name and owner to a given section and this workflow will create a PR to include latest revision of it.
1 parent c054587 commit ab57ab8

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/fix.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Merge lint & fix
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
python-version: [3.11]
13+
steps:
14+
- uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
- name: Cache downloads
22+
uses: actions/cache@v4
23+
with:
24+
path: ~/.cache/pip
25+
key: cache-${{ matrix.python-version }}
26+
- name: Install dependencies
27+
run: |
28+
python -m pip install --upgrade pip
29+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
30+
- name: Perform linting
31+
run: |
32+
make INSTANCE=galaxy-qa1.galaxy.cloud.e-infra.cz lint
33+
make INSTANCE=galaxy-qa1.galaxy.cloud.e-infra.cz fix
34+
make INSTANCE=usegalaxy.cz lint
35+
make INSTANCE=usegalaxy.cz fix
36+
- name: Create Pull Request
37+
uses: peter-evans/create-pull-request@v7
38+
with:
39+
committer: CESNETbot <[email protected]>
40+
commit-message: "output of make lint & make fix on all instances"
41+
title: "Linting and Fixing All Tools"
42+
body: "I ran make lint & make fix on all instances"
43+
labels: automated
44+
assignees: martenson
45+
reviewers: martenson

0 commit comments

Comments
 (0)