Skip to content

Commit

Permalink
Add summary step
Browse files Browse the repository at this point in the history
Addresses #70

#70

This lets us hook requirements to summary as opposed to dynamically named steps.
  • Loading branch information
daniel-noland authored and qmonnet committed Nov 11, 2024
1 parent 76acb5a commit f86c306
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,18 @@ jobs:
timeout-minutes: 60
with:
limit-access-to-actor: true

summary:
name: "summary"
if: ${{ always() }}
runs-on: "ubuntu-latest"
needs:
- build
steps:
- name: "Flag any build matrix failures"
if: ${{ needs.build.result != 'success' }}
run: |
>&2 echo "A critical step failed!"
exit 1
20 changes: 20 additions & 0 deletions .github/workflows/sterile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -196,3 +196,23 @@ jobs:
timeout-minutes: 60
with:
limit-access-to-actor: true

summary:
name: "summary"
if: ${{ always() }}
runs-on: "ubuntu-latest"
needs:
- test
- push
steps:
- name: "Flag any test failures"
if: ${{ needs.test.result != 'success' }}
run: |
>&2 echo "One or more required tests failed"
exit 1
- name: "Flag any push failures"
if: ${{ needs.push.result != 'success' }}
run: |
>&2 echo "One or more required pushes failed"
exit 1

0 comments on commit f86c306

Please sign in to comment.