Skip to content

Commit c6a6579

Browse files
harjotgillCodeRabbit Automation
andauthored
Block fork pull request workflow jobs (#123)
Co-authored-by: CodeRabbit Automation <actions@coderabbit.ai>
1 parent 4a0381f commit c6a6579

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/node.js.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313

1414
jobs:
1515
test:
16+
if: ${{ github.event.pull_request == null || github.event.pull_request.head.repo.full_name == github.repository }}
1617
runs-on: ubuntu-latest
1718

1819
steps:
@@ -66,7 +67,7 @@ jobs:
6667
needs:
6768
- test
6869

69-
if: failure() && github.event_name != 'merge_group' && github.actor != 'github-actions[bot]' && github.actor != 'nektos/act'
70+
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') }}
7071

7172
steps:
7273
- uses: actions/checkout@v6

0 commit comments

Comments
 (0)