Skip to content

Commit

Permalink
fix(ci): merge on failure (#2074)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts authored Sep 4, 2024
1 parent 486f4b7 commit 7a79ead
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ jobs:
results:
name: Analysis Results
needs: [tests, trivy]
if: always()
runs-on: ubuntu-22.04
steps:
- if: contains(needs.*.result, 'failure')
run: echo "At least one job has failed." && exit 1
- run: echo "Success!"

4 changes: 3 additions & 1 deletion .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ jobs:
results:
name: PR Results
needs: [builds, deploys, tests]
if: always() && (!failure()) && (!cancelled())
if: always()
runs-on: ubuntu-22.04
steps:
- if: contains(needs.*.result, 'failure')
run: echo "At least one job has failed." && exit 1
- run: echo "Success!"

0 comments on commit 7a79ead

Please sign in to comment.