From 0c68c78626dc1a2e4c61be770d6e6503cf6349e7 Mon Sep 17 00:00:00 2001 From: Maybe Waffle Date: Thu, 5 Oct 2023 20:14:18 +0400 Subject: [PATCH] Make `ci-pass` job actually fail when some required job failed --- .github/workflows/ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index de4ee898..0d6d70fa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,6 +35,7 @@ jobs: ci-pass: name: CI succeeded runs-on: ubuntu-latest + if: always() needs: - fmt @@ -44,7 +45,10 @@ jobs: - doc steps: - - run: exit 0 + - name: Check whether the needed jobs succeeded or failed + uses: re-actors/alls-green@release/v1 + with: + jobs: ${{ toJSON(needs) }} fmt: name: fmt