Skip to content

Commit

Permalink
add "check" to ci (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelcolvin authored Apr 24, 2023
1 parent e27d394 commit 99855d7
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,21 @@ jobs:
file: ./coverage.xml
env_vars: PYTHON,OS

check: # This job does nothing and is only used for the branch protection
if: always()
needs: [lint, test]
runs-on: ubuntu-latest

steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
id: all-green
with:
jobs: ${{ toJSON(needs) }}

release:
name: Release
needs: [lint, test]
needs: [check]
if: "success() && startsWith(github.ref, 'refs/tags/')"
runs-on: ubuntu-latest
environment: release
Expand Down

0 comments on commit 99855d7

Please sign in to comment.