Skip to content

Commit

Permalink
Merge pull request #41 from UCL-ARC/stef/qw-ignore-pr
Browse files Browse the repository at this point in the history
QW check on PR will pass if qw-ignored
  • Loading branch information
tim-band authored Dec 7, 2023
2 parents 93c374a + 1d5810e commit 8672e8b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/resources/templates/.github/workflows/qw-pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
jobs:
qw-check:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'qw-ignore') }}
if: ${{ github.event_name == 'pull_request' }}
steps:
- name: Checkout qw
uses: actions/checkout@v3
Expand All @@ -24,6 +24,8 @@ jobs:
- name: Install dependencies
run: pip install .
- name: qw check
# if labelled qw-ignore, then job will always pass
if: ${{ !contains(github.event.pull_request.labels.*.name, 'qw-ignore') }}
id: qw
run: |
qw check --review-request ${{ github.event.pull_request.number }} --repository ${{ github.repository }} --token {{ secrets.GITHUB_TOKEN }}

0 comments on commit 8672e8b

Please sign in to comment.