Skip to content

Commit de6a9ce

Browse files
fix(ci): correct conditional
1 parent f89c7eb commit de6a9ce

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/ci.yml

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

3838
upload:
39-
if: github.repository == 'stainless-sdks/openai-python'
39+
if: github.repository == 'stainless-sdks/openai-python' && (github.event_name == 'push' || github.event.pull_request.head.repo.fork)
4040
timeout-minutes: 10
4141
name: upload
4242
permissions:
4343
contents: read
4444
id-token: write
4545
runs-on: depot-ubuntu-24.04
46-
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
4746
steps:
4847
- uses: actions/checkout@v4
4948

@@ -86,7 +85,7 @@ jobs:
8685
timeout-minutes: 10
8786
name: examples
8887
runs-on: ${{ github.repository == 'stainless-sdks/openai-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
89-
if: github.repository == 'openai/openai-python && (github.event_name == 'push' || github.event.pull_request.head.repo.fork)'
88+
if: github.repository == 'openai/openai-python' && (github.event_name == 'push' || github.event.pull_request.head.repo.fork)
9089

9190
steps:
9291
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)