Skip to content

Commit e0449d2

Browse files
committed
🧪 Integrate a unified alls-green GHA status
1 parent cebc64f commit e0449d2

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/build-and-push-docker-image.yml

+18-1
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,28 @@ on: # yamllint disable-line rule:truthy
1616
jobs:
1717
smoke-test:
1818
uses: ./.github/workflows/reusable-smoke-test.yml
19+
20+
check: # This job does nothing and is only used for the branch protection
21+
if: always()
22+
23+
needs:
24+
- smoke-test
25+
26+
runs-on: ubuntu-latest
27+
28+
timeout-minutes: 1
29+
30+
steps:
31+
- name: Decide whether the needed jobs succeeded or failed
32+
uses: re-actors/alls-green@release/v1
33+
with:
34+
jobs: ${{ toJSON(needs) }}
35+
1936
build-and-push:
2037
if: github.event_name != 'pull_request'
2138
runs-on: ubuntu-latest
2239
needs:
23-
- smoke-test
40+
- check
2441
timeout-minutes: 10
2542
steps:
2643
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)