Skip to content

Commit

Permalink
Add a no-op checking job to GHA (#6185)
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz committed Oct 31, 2021
1 parent 527b1b9 commit 15f4411
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 @@ -175,10 +175,22 @@ jobs:
flags: unit
fail_ci_if_error: false

check: # This job does nothing and is only used for the branch protection
needs:
- test

runs-on: ubuntu-latest

steps:
- name: Report success of the test matrix
run: >-
print("All's good")
shell: python

pre-deploy:
name: Pre-Deploy
runs-on: ubuntu-latest
needs: test
needs: check
# Run only on pushing a tag
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
steps:
Expand Down

0 comments on commit 15f4411

Please sign in to comment.