From 502958e56368a8f4afdf9168331e5e283243edac Mon Sep 17 00:00:00 2001 From: Christopher Obbard Date: Wed, 10 Jan 2024 13:45:33 +0000 Subject: [PATCH] ci: Add allgreen job to signify overall workflow status Rework the bors job (which signifies overall workflow status) into a more generic job named allgreen. Signed-off-by: Christopher Obbard --- .github/workflows/ci.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c79b564..0d7ee62 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -62,10 +62,11 @@ jobs: with: command: clippy args: --all-targets -- -D warnings -# Job to key the bors success status against - bors: - name: bors - if: success() + + # Job to key success status against + allgreen: + name: allgreen + if: always() needs: - check - fmt @@ -73,5 +74,7 @@ jobs: - clippy runs-on: ubuntu-latest steps: - - name: Mark the job as a success - run: exit 0 + - name: Decide whether the needed jobs succeeded or failed + uses: re-actors/alls-green@release/v1 + with: + jobs: ${{ toJSON(needs) }}