Skip to content

Commit 2272103

Browse files
obbardcsjoerdsimons
authored andcommitted
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 <chris.obbard@collabora.com>
1 parent 7a41aa9 commit 2272103

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,10 @@ jobs:
8989
tags: ${{ steps.meta.outputs.tags }}
9090
labels: ${{ steps.meta.outputs.labels }}
9191

92-
93-
# Job to key the bors success status against
94-
bors:
95-
name: bors
96-
if: success()
92+
# Job to key success status against
93+
allgreen:
94+
name: allgreen
95+
if: always()
9796
needs:
9897
- check
9998
- fmt
@@ -102,5 +101,7 @@ jobs:
102101
- docker-image
103102
runs-on: ubuntu-latest
104103
steps:
105-
- name: Mark the job as a success
106-
run: exit 0
104+
- name: Decide whether the needed jobs succeeded or failed
105+
uses: re-actors/alls-green@release/v1
106+
with:
107+
jobs: ${{ toJSON(needs) }}

0 commit comments

Comments
 (0)