Skip to content

Commit d55d529

Browse files
feat(stlc): configurable CI runner and private-production-repo support in workflow templates
1 parent 21c81e4 commit d55d529

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
@@ -21,7 +21,7 @@ jobs:
2121
lint:
2222
timeout-minutes: 10
2323
name: lint
24-
runs-on: ${{ github.repository == 'stainless-sdks/context.dev-cli' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
24+
runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
2525
if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
2626

2727
steps:
@@ -48,7 +48,7 @@ jobs:
4848
permissions:
4949
contents: read
5050
id-token: write
51-
runs-on: ${{ github.repository == 'stainless-sdks/context.dev-cli' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
51+
runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
5252
if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
5353
steps:
5454
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -95,7 +95,7 @@ jobs:
9595
test:
9696
timeout-minutes: 10
9797
name: test
98-
runs-on: ${{ github.repository == 'stainless-sdks/context.dev-cli' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
98+
runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
9999
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
100100
steps:
101101
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

0 commit comments

Comments
 (0)