diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 93c329d..308a3c1 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -175,3 +175,16 @@ jobs: timeout-minutes: 60 with: limit-access-to-actor: true + + summary: + name: "summary" + runs-on: "ubuntu-latest" + needs: + - build + if: ${{ always() && needs.build.result != 'skipped' }} + steps: + - name: "Flag any build matrix failures" + if: ${{ needs.build.result != 'success' }} + run: | + >&2 echo "A critical step failed!" + exit 1 diff --git a/.github/workflows/sterile.yml b/.github/workflows/sterile.yml index 44364ca..a47a47d 100644 --- a/.github/workflows/sterile.yml +++ b/.github/workflows/sterile.yml @@ -229,3 +229,22 @@ jobs: timeout-minutes: 60 with: limit-access-to-actor: true + + summary: + name: "summary" + runs-on: "ubuntu-latest" + needs: + - test + - push + if: ${{ always() && needs.test.result != 'skipped' && needs.push.result != 'skipped' }} + 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