Skip to content

Commit 828413f

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

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/lint.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ permissions: read-all
1010

1111
jobs:
1212
shellcheck:
13+
if: ${{ github.event.pull_request == null || github.event.pull_request.head.repo.full_name == github.repository }}
1314
name: ShellCheck
1415
runs-on: ubuntu-latest
1516
steps:
@@ -23,6 +24,7 @@ jobs:
2324
shellcheck bin/gtr bin/git-gtr lib/*.sh lib/commands/*.sh adapters/editor/*.sh adapters/ai/*.sh
2425
2526
completions:
27+
if: ${{ github.event.pull_request == null || github.event.pull_request.head.repo.full_name == github.repository }}
2628
name: Completions
2729
runs-on: ubuntu-latest
2830
steps:
@@ -32,6 +34,7 @@ jobs:
3234
run: ./scripts/generate-completions.sh --check
3335

3436
test:
37+
if: ${{ github.event.pull_request == null || github.event.pull_request.head.repo.full_name == github.repository }}
3538
name: Tests
3639
runs-on: ubuntu-latest
3740
steps:

0 commit comments

Comments
 (0)