Skip to content

Commit 3ea23af

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 db4eadd commit 3ea23af

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.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: 10
2020
name: lint
2121
runs-on: ${{ github.repository == 'stainless-sdks/runloop-node' && '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
steps:
2424
- uses: actions/checkout@v6
2525

@@ -41,7 +41,7 @@ jobs:
4141
timeout-minutes: 5
4242
name: build
4343
runs-on: ${{ github.repository == 'stainless-sdks/runloop-node' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
44-
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
44+
if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
4545
permissions:
4646
contents: read
4747
id-token: write

0 commit comments

Comments
 (0)