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 6ab63d3 commit 34494c5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ jobs:
needs: [tests-java, tests-frontend] # Restore trivy when/if fixed
runs-on: ubuntu-24.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 @@ -583,6 +583,6 @@ jobs:
if: always()
runs-on: ubuntu-24.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-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,6 @@ jobs:
if: always()
runs-on: ubuntu-24.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 34494c5

Please sign in to comment.