Skip to content

Commit 38d2c5f

Browse files
feat(stlc): configurable CI runner and private-production-repo support in workflow templates
1 parent 0d4a3b0 commit 38d2c5f

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
permissions:
2222
contents: read
2323
id-token: write
24-
runs-on: ${{ github.repository == 'stainless-sdks/lithic-go' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
24+
runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
2525
if: |-
2626
github.repository == 'stainless-sdks/lithic-go' &&
2727
(github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
@@ -49,7 +49,7 @@ jobs:
4949
lint:
5050
timeout-minutes: 10
5151
name: lint
52-
runs-on: ${{ github.repository == 'stainless-sdks/lithic-go' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
52+
runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
5353
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
5454

5555
steps:
@@ -65,7 +65,7 @@ jobs:
6565
test:
6666
timeout-minutes: 10
6767
name: test
68-
runs-on: ${{ github.repository == 'stainless-sdks/lithic-go' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
68+
runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
6969
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
7070
steps:
7171
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

0 commit comments

Comments
 (0)