diff --git a/.github/workflows/pull-request.yaml b/.github/workflows/pull-request.yaml index 372f1670bf..c3613f34b7 100644 --- a/.github/workflows/pull-request.yaml +++ b/.github/workflows/pull-request.yaml @@ -121,7 +121,9 @@ jobs: test-forked-node: # Do not run this job on forks since some secrets are required for it. - if: ${{ github.event.pull_request.head.repo.full_name == github.repository }} + if: | + (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) || + (github.event_name == 'push' && github.ref == 'refs/heads/main') timeout-minutes: 60 runs-on: ubuntu-latest env: