Skip to content

Commit

Permalink
ci(fix): catch canceled jobs (#522)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts authored Dec 4, 2024
1 parent 2178f77 commit 0ea2145
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 @@ -113,7 +113,7 @@ jobs:
# View results
echo "needs.*.result: ${{ toJson(needs.*.result) }}"
- if: contains(needs.*.result, 'canceled|failure')
- if: contains(needs.*.result, 'failure')||contains(needs.*.result, 'canceled')
run: |
# Job failure found
echo "At least one job has failed"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
# View results
echo "needs.*.result: ${{ toJson(needs.*.result) }}"
- if: contains(needs.*.result, 'canceled|failure')
- if: contains(needs.*.result, 'failure')||contains(needs.*.result, 'canceled')
run: |
# Job failure found
echo "At least one job has failed"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
# View results
echo "needs.*.result: ${{ toJson(needs.*.result) }}"
- if: contains(needs.*.result, 'canceled|failure')
- if: contains(needs.*.result, 'failure')||contains(needs.*.result, 'canceled')
run: |
# Job failure found
echo "At least one job has failed"
Expand Down

0 comments on commit 0ea2145

Please sign in to comment.