Skip to content

Commit 8dc0179

Browse files
chore(ci): only run for pushes and fork pull requests
1 parent 339d9ae commit 8dc0179

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/ci.yml

Lines changed: 3 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-java' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
20+
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
2021

2122
steps:
2223
- uses: actions/checkout@v4
@@ -39,6 +40,7 @@ jobs:
3940
timeout-minutes: 10
4041
name: test
4142
runs-on: ${{ github.repository == 'stainless-sdks/openai-java' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
43+
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
4244
steps:
4345
- uses: actions/checkout@v4
4446

@@ -60,7 +62,7 @@ jobs:
6062
timeout-minutes: 10
6163
name: examples
6264
runs-on: ${{ github.repository == 'stainless-sdks/openai-java' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
63-
if: github.repository == 'openai/openai-java'
65+
if: github.repository == 'openai/openai-java && (github.event_name == 'push' || github.event.pull_request.head.repo.fork)'
6466

6567
steps:
6668
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)