Skip to content

Commit ac0e4b5

Browse files
feat(stlc): configurable CI runner and private-production-repo support in workflow templates
1 parent 4816aab commit ac0e4b5

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/stagehand-ruby' && '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/stagehand-ruby' &&
2727
(github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
@@ -56,7 +56,7 @@ jobs:
5656
lint:
5757
timeout-minutes: 10
5858
name: lint
59-
runs-on: ${{ github.repository == 'stainless-sdks/stagehand-ruby' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
59+
runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
6060
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
6161

6262
steps:
@@ -73,7 +73,7 @@ jobs:
7373
test:
7474
timeout-minutes: 10
7575
name: test
76-
runs-on: ${{ github.repository == 'stainless-sdks/stagehand-ruby' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
76+
runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
7777
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
7878
steps:
7979
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

0 commit comments

Comments
 (0)