Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts committed May 3, 2024
1 parent 51c4cfb commit 9579ff1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 28 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,7 @@ jobs:
results:
name: Analysis Results
needs: [tests, trivy]
if: always()
runs-on: ubuntu-22.04
steps:
- run: |
# View results
echo "needs.*.result: ${{ toJson(needs.*.result) }}"
- run: echo "Success!"

- if: contains(needs.*.result, 'failure')||contains(needs.*.result, 'failure')
run: |
# Job failure or cancel found
echo "At least one job has failed or cancelled"
exit 1
12 changes: 2 additions & 10 deletions .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,7 @@ jobs:
results:
name: PR Results
needs: [builds, deploys, tests]
if: always()
if: always() && (!failure()) && (!cancelled())
runs-on: ubuntu-22.04
steps:
- run: |
# View results
echo "needs.*.result: ${{ toJson(needs.*.result) }}"
- if: contains(needs.*.result, 'failure')||contains(needs.*.result, 'failure')
run: |
# Job failure or cancel found
echo "At least one job has failed or cancelled"
exit 1
- run: echo "Success!"
10 changes: 1 addition & 9 deletions .github/workflows/pr-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,4 @@ jobs:
needs: [validate]
runs-on: ubuntu-22.04
steps:
- run: |
# View results
echo "needs.*.result: ${{ toJson(needs.*.result) }}"
- if: contains(needs.*.result, 'failure')
run: |
# Job failure found
echo "At least one job has failed"
exit 1
- run: echo "Success!"

0 comments on commit 9579ff1

Please sign in to comment.