Skip to content

Commit b5d50c7

Browse files
chore(ci): only run for pushes and fork pull requests
1 parent 82ec59c commit b5d50c7

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
@@ -17,6 +17,7 @@ jobs:
1717
timeout-minutes: 10
1818
name: lint
1919
runs-on: ${{ github.repository == 'stainless-sdks/openai-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
20+
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
2021
steps:
2122
- uses: actions/checkout@v4
2223

@@ -42,6 +43,7 @@ jobs:
4243
contents: read
4344
id-token: write
4445
runs-on: depot-ubuntu-24.04
46+
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
4547
steps:
4648
- uses: actions/checkout@v4
4749

@@ -62,6 +64,7 @@ jobs:
6264
timeout-minutes: 10
6365
name: test
6466
runs-on: ${{ github.repository == 'stainless-sdks/openai-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
67+
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
6568
steps:
6669
- uses: actions/checkout@v4
6770

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

8891
steps:
8992
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)