Skip to content

Commit e452235

Browse files
committed
ci: Introduce alls-green
1 parent 4c3f7a1 commit e452235

File tree

2 files changed

+12
-14
lines changed

2 files changed

+12
-14
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,9 @@ jobs:
274274
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
275275
matrix: ${{ toJson(matrix) }}
276276

277-
notify:
277+
all-pass-build:
278+
if: always()
279+
278280
needs:
279281
- build-and-test
280282
- go-lint
@@ -286,10 +288,7 @@ jobs:
286288
runs-on: ubuntu-latest
287289

288290
steps:
289-
- name: Slack Notification (success)
290-
uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
291-
if: always()
292-
continue-on-error: true
291+
- name: check dependent jobs
292+
uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
293293
with:
294-
status: ${{ job.status }}
295-
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
294+
jobs: ${{ toJSON(needs) }}

.github/workflows/ruby_h_to_go.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,17 +74,16 @@ jobs:
7474
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
7575
matrix: ${{ toJson(matrix) }}
7676

77-
notify:
77+
all-pass-ruby_h_to_go:
78+
if: always()
79+
7880
needs:
7981
- test
8082

8183
runs-on: ubuntu-latest
8284

8385
steps:
84-
- name: Slack Notification (success)
85-
uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
86-
if: always()
87-
continue-on-error: true
86+
- name: check dependent jobs
87+
uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
8888
with:
89-
status: ${{ job.status }}
90-
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
89+
jobs: ${{ toJSON(needs) }}

0 commit comments

Comments
 (0)