Skip to content

Commit 71620ce

Browse files
authored
Skip CI on fork PRs (#2240)
1 parent 9ef04e9 commit 71620ce

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,12 @@ env:
2222
EXECUTOR_DISABLE_ANALYTICS: "1"
2323
EXECUTOR_DISABLE_INTEGRATIONS_FETCH: "1"
2424

25+
# Outside contributions are ported into the private repo, which runs the
26+
# checks there, so fork PRs skip CI here. Jobs that need `changes` skip with it.
2527
jobs:
2628
changes:
2729
name: Changed paths
30+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
2831
runs-on: blacksmith-4vcpu-ubuntu-2404
2932
timeout-minutes: 10
3033
outputs:
@@ -78,6 +81,7 @@ jobs:
7881
7982
format:
8083
name: Format
84+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
8185
runs-on: blacksmith-4vcpu-ubuntu-2404
8286
timeout-minutes: 10
8387
steps:
@@ -101,6 +105,7 @@ jobs:
101105

102106
lint:
103107
name: Lint
108+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
104109
runs-on: blacksmith-4vcpu-ubuntu-2404
105110
timeout-minutes: 10
106111
steps:
@@ -124,6 +129,7 @@ jobs:
124129

125130
typecheck:
126131
name: Typecheck
132+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
127133
runs-on: blacksmith-4vcpu-ubuntu-2404
128134
timeout-minutes: 15
129135
env:
@@ -165,6 +171,7 @@ jobs:
165171

166172
test:
167173
name: Test
174+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
168175
runs-on: blacksmith-16vcpu-ubuntu-2404
169176
timeout-minutes: 15
170177
# Run eight independent packages at once and cap each Vitest process at two

0 commit comments

Comments
 (0)