From 520e33c9c778ab77b0b1951a21414466403cbdc1 Mon Sep 17 00:00:00 2001 From: Kan-Ru Chen Date: Sun, 7 Jan 2024 22:15:27 +0900 Subject: [PATCH] ci: add a summarize step --- .github/workflows/ci.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2fb0cff53..4f6f8834e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -101,3 +101,18 @@ jobs: uses: codecov/codecov-action@v3 env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + + # https://github.com/orgs/community/discussions/26822 + results: + if: ${{ always() }} + runs-on: ubuntu-latest + name: Final Results + needs: [build] + steps: + - run: exit 1 + # see https://stackoverflow.com/a/67532120/4907315 + if: >- + ${{ + contains(needs.*.result, 'failure') + || contains(needs.*.result, 'cancelled') + }}