Skip to content

Commit 19b00d2

Browse files
🧪 Introduce a gate/check GHA job (#635)
Co-authored-by: Chris Sewell <[email protected]>
1 parent 41582e2 commit 19b00d2

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

.github/workflows/tests.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,29 @@ jobs:
101101
- name: Run docutils CLI
102102
run: echo "test" | myst-docutils-html
103103

104+
# https://github.com/marketplace/actions/alls-green#why
105+
check: # This job does nothing and is only used for the branch protection
106+
107+
if: always()
108+
109+
needs:
110+
- pre-commit
111+
- tests
112+
- check-myst-docutils
113+
114+
runs-on: ubuntu-latest
115+
116+
steps:
117+
- name: Decide whether the needed jobs succeeded or failed
118+
uses: re-actors/alls-green@release/v1
119+
with:
120+
jobs: ${{ toJSON(needs) }}
121+
104122
publish:
105123

106124
name: Publish myst-parser to PyPi
107-
needs: [pre-commit, tests, check-myst-docutils]
125+
needs:
126+
- check
108127
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
109128
runs-on: ubuntu-latest
110129
steps:

0 commit comments

Comments
 (0)