Skip to content

Commit

Permalink
test: change summary job to only run on failure
Browse files Browse the repository at this point in the history
This saves time when jobs are successful, as we don't need to wait for
GitHub to spin up a new VM.
  • Loading branch information
alaviss committed Jan 31, 2024
1 parent 2b4a5d2 commit 8b30dfd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,11 @@ jobs:
success:
name: All action tests passed
needs: [check]
if: always()
if: cancelled() || failure()
runs-on: ubuntu-latest

steps:
- name: Raise failure
if: |
contains(needs.*.result, 'failure') ||
contains(needs.*.result, 'cancelled')
run: |
echo "::error::There are failing required jobs"
exit 1

0 comments on commit 8b30dfd

Please sign in to comment.