Skip to content

Commit a84c588

Browse files
chore(ci): skip lint on metadata-only changes
Note that we still want to run tests, as these depend on the metadata.
1 parent a497f62 commit a84c588

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
timeout-minutes: 15
2020
name: lint
2121
runs-on: ${{ github.repository == 'stainless-sdks/openai-java' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
22-
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
22+
if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
2323

2424
steps:
2525
- uses: actions/checkout@v6
@@ -46,7 +46,7 @@ jobs:
4646
contents: read
4747
id-token: write
4848
runs-on: ${{ github.repository == 'stainless-sdks/openai-java' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
49-
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
49+
if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
5050

5151
steps:
5252
- uses: actions/checkout@v6
@@ -140,7 +140,7 @@ jobs:
140140
timeout-minutes: 10
141141
name: examples
142142
runs-on: ${{ github.repository == 'stainless-sdks/openai-java' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
143-
if: github.repository == 'openai/openai-java' && (github.event_name == 'push' || github.event.pull_request.head.repo.fork)
143+
if: github.repository == 'openai/openai-java' && (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
144144

145145
steps:
146146
- uses: actions/checkout@v6

0 commit comments

Comments
 (0)