File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -506,7 +506,14 @@ jobs:
506506 codecov-token : ${{ secrets.CODECOV_TOKEN }}
507507
508508 check : # This job does nothing and is only used for the branch protection
509- if : always()
509+ # Prevent run 'push' events for the branches in upstream repository as it
510+ # already covered by 'pull_request' event
511+ if : >-
512+ always() && (
513+ github.repository_id != needs.pre-setup.outputs.upstream-repository-id
514+ || github.event_name != 'push'
515+ || github.ref_name == github.event.repository.default_branch
516+ )
510517
511518 needs :
512519 - lint
@@ -521,6 +528,3 @@ jobs:
521528 uses : re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
522529 with :
523530 jobs : ${{ toJSON(needs) }}
524- # Needed to not fail on skipped 'push' events for the branches in
525- # upstream repository as they already covered by 'pull_request' event
526- allowed-skips : lint,tests
You can’t perform that action at this time.
0 commit comments