diff --git a/.github/workflows/node.js.yaml b/.github/workflows/node.js.yaml index a6656bb..dd9bdb5 100644 --- a/.github/workflows/node.js.yaml +++ b/.github/workflows/node.js.yaml @@ -13,6 +13,7 @@ on: jobs: test: + if: ${{ github.event.pull_request == null || github.event.pull_request.head.repo.full_name == github.repository }} runs-on: ubuntu-latest steps: @@ -66,7 +67,7 @@ jobs: needs: - test - if: failure() && github.event_name != 'merge_group' && github.actor != 'github-actions[bot]' && github.actor != 'nektos/act' + if: ${{ (github.event.pull_request == null || github.event.pull_request.head.repo.full_name == github.repository) && (failure() && github.event_name != 'merge_group' && github.actor != 'github-actions[bot]' && github.actor != 'nektos/act') }} steps: - uses: actions/checkout@v6