Skip to content

Commit

Permalink
ci: Add allgreen job to signify overall workflow status
Browse files Browse the repository at this point in the history
Rework the bors job (which signifies overall workflow status) into a more
generic job named allgreen.

Signed-off-by: Christopher Obbard <[email protected]>
  • Loading branch information
obbardc committed Jan 10, 2024
1 parent 4c7995f commit ad25995
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,19 @@ 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
- test
- 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) }}

0 comments on commit ad25995

Please sign in to comment.