Skip to content

Commit 772cf9a

Browse files
committed
Rollback "skip" check
1 parent e93151d commit 772cf9a

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/ci-cd.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)