Skip to content

Commit

Permalink
ci: catch canceled jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts committed Dec 3, 2024
1 parent d775ff3 commit 90b008e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,6 @@ jobs:
needs: [tests] # Restore trivy when/if it's working again
runs-on: ubuntu-22.04
steps:
- if: contains(needs.*.result, 'failure')
- if: contains(needs.*.result, 'canceled|failure')
run: echo "At least one job has failed." && exit 1
- run: echo "Success!"
2 changes: 1 addition & 1 deletion .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@ jobs:
if: always()
runs-on: ubuntu-22.04
steps:
- if: contains(needs.*.result, 'failure')
- if: contains(needs.*.result, 'canceled|failure')
run: echo "At least one job has failed." && exit 1
- run: echo "Success!"

0 comments on commit 90b008e

Please sign in to comment.