Skip to content

Commit db48689

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

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:
@@ -47,7 +48,7 @@ jobs:
4748
needs:
4849
- test
4950

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

5253
steps:
5354
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)