Skip to content

Commit 99855d7

Browse files
authored
add "check" to ci (#21)
1 parent e27d394 commit 99855d7

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,21 @@ jobs:
7272
file: ./coverage.xml
7373
env_vars: PYTHON,OS
7474

75+
check: # This job does nothing and is only used for the branch protection
76+
if: always()
77+
needs: [lint, test]
78+
runs-on: ubuntu-latest
79+
80+
steps:
81+
- name: Decide whether the needed jobs succeeded or failed
82+
uses: re-actors/alls-green@release/v1
83+
id: all-green
84+
with:
85+
jobs: ${{ toJSON(needs) }}
86+
7587
release:
7688
name: Release
77-
needs: [lint, test]
89+
needs: [check]
7890
if: "success() && startsWith(github.ref, 'refs/tags/')"
7991
runs-on: ubuntu-latest
8092
environment: release

0 commit comments

Comments
 (0)