Skip to content

Commit 9900f90

Browse files
chore(ci): only run for pushes and fork pull requests
1 parent 1190250 commit 9900f90

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
timeout-minutes: 10
2323
name: lint
2424
runs-on: ${{ github.repository == 'stainless-sdks/cloudflare-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
25+
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
2526
steps:
2627
- uses: actions/checkout@v4
2728

@@ -47,6 +48,7 @@ jobs:
4748
contents: read
4849
id-token: write
4950
runs-on: depot-ubuntu-24.04
51+
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
5052
steps:
5153
- uses: actions/checkout@v4
5254

@@ -67,6 +69,7 @@ jobs:
6769
timeout-minutes: 30
6870
name: test
6971
runs-on: ${{ github.repository == 'stainless-sdks/cloudflare-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
72+
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
7073
steps:
7174
- uses: actions/checkout@v4
7275

@@ -88,7 +91,7 @@ jobs:
8891
timeout-minutes: 10
8992
name: examples
9093
runs-on: ${{ github.repository == 'stainless-sdks/cloudflare-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
91-
if: github.repository == 'cloudflare/cloudflare-python'
94+
if: github.repository == 'cloudflare/cloudflare-python && (github.event_name == 'push' || github.event.pull_request.head.repo.fork)'
9295

9396
steps:
9497
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)