Skip to content

Commit 2086a78

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 29bdded commit 2086a78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 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/stagehand-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/stagehand-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

0 commit comments

Comments
 (0)