Skip to content

Commit

Permalink
Fail if main or pre jobs are cancelled (#2493)
Browse files Browse the repository at this point in the history
  • Loading branch information
jneira committed Dec 17, 2021
1 parent 0211f75 commit eee4c63
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,5 @@ jobs:
echo "jobs info: ${{ toJSON(needs) }}"
- if: contains(needs.*.result, 'failure')
run: exit 1
- if: contains(needs.*.result, 'cancelled')
name: cancelling
uses: andymckay/cancel-action@0.2
- if: contains(needs.*.result, 'cancelled') && needs.pre_job.outputs.should_skip != 'true'
run: exit 1
5 changes: 2 additions & 3 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,5 @@ jobs:
echo "jobs info: ${{ toJSON(needs) }}"
- if: contains(needs.*.result, 'failure')
run: exit 1
- if: contains(needs.*.result, 'cancelled')
name: cancelling
uses: andymckay/cancel-action@0.2
- if: contains(needs.*.result, 'cancelled') && needs.pre_job.outputs.should_skip != 'true'
run: exit 1
5 changes: 2 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,5 @@ jobs:
echo "jobs info: ${{ toJSON(needs) }}"
- if: contains(needs.*.result, 'failure')
run: exit 1
- if: contains(needs.*.result, 'cancelled')
name: cancelling
uses: andymckay/cancel-action@0.2
- if: contains(needs.*.result, 'cancelled') && needs.pre_job.outputs.should_skip != 'true'
run: exit 1

0 comments on commit eee4c63

Please sign in to comment.