diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c9996eb7..37b5072b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -101,10 +101,29 @@ jobs: - name: Run docutils CLI run: echo "test" | myst-docutils-html + # https://github.com/marketplace/actions/alls-green#why + check: # This job does nothing and is only used for the branch protection + + if: always() + + needs: + - pre-commit + - tests + - check-myst-docutils + + runs-on: ubuntu-latest + + steps: + - name: Decide whether the needed jobs succeeded or failed + uses: re-actors/alls-green@release/v1 + with: + jobs: ${{ toJSON(needs) }} + publish: name: Publish myst-parser to PyPi - needs: [pre-commit, tests, check-myst-docutils] + needs: + - check if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') runs-on: ubuntu-latest steps: