Skip to content

Commit

Permalink
ci(fix): catch canceled jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts committed Dec 4, 2024
1 parent 044ea4c commit a55e1e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,6 @@ jobs:
needs: [tests] # Restore trivy when/if fixed
runs-on: ubuntu-24.04
steps:
- if: contains(needs.*.result, 'canceled|failure')
- if: contains(needs.*.result, 'failure')||contains(needs.*.result, 'canceled')
run: echo "At least one job has failed." && exit 1
- run: echo "Success!"

0 comments on commit a55e1e1

Please sign in to comment.