From ad2599550b749fb8d95efe4c2b4275782947d72e Mon Sep 17 00:00:00 2001 From: Christopher Obbard Date: Wed, 10 Jan 2024 13:44:38 +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 20a2815..d13535a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -62,10 +62,11 @@ jobs: with: command: clippy args: -- -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) }}