Skip to content

Commit bdfbfd5

Browse files
authored
Merge pull request #1271 from jakob-keller/alls-green
Integrate `alls-green` in CI/CD
2 parents fb860e8 + 2c2f499 commit bdfbfd5

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.github/workflows/ci-cd.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,25 @@ jobs:
8484
fail_ci_if_error: true # optional (default = false)
8585
verbose: true # optional (default = false)
8686

87+
check: # This job does nothing and is only used for the branch protection
88+
if: always()
89+
needs:
90+
- build
91+
- test
92+
runs-on: ubuntu-24.04
93+
timeout-minutes: 5
94+
95+
steps:
96+
- name: Decide whether the needed jobs succeeded or failed
97+
uses: re-actors/alls-green@release/v1
98+
with:
99+
jobs: ${{ toJSON(needs) }}
100+
87101
pypi-publish:
88102
name: Publish Python 🐍 distribution 📦 to PyPI
89103
if: github.ref_type == 'tag' # only publish on tag pushes
90104
needs:
91-
- build
92-
- test
105+
- check
93106
runs-on: ubuntu-24.04
94107
environment:
95108
name: pypi

0 commit comments

Comments
 (0)