Skip to content

Commit a071a9a

Browse files
fix(ci): correct conditional
1 parent 4089586 commit a071a9a

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,13 @@ jobs:
4141
run: ./scripts/lint
4242

4343
upload:
44-
if: github.repository == 'stainless-sdks/cloudflare-python'
44+
if: github.repository == 'stainless-sdks/cloudflare-python' && (github.event_name == 'push' || github.event.pull_request.head.repo.fork)
4545
timeout-minutes: 10
4646
name: upload
4747
permissions:
4848
contents: read
4949
id-token: write
5050
runs-on: depot-ubuntu-24.04
51-
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
5251
steps:
5352
- uses: actions/checkout@v4
5453

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

9695
steps:
9796
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)