Skip to content

Commit 3a7e90b

Browse files
chore(ci): skip uploading artifacts on stainless-internal branches
1 parent f714af2 commit 3a7e90b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,18 @@ jobs:
3333
bundle install
3434
3535
- name: Get GitHub OIDC Token
36-
if: github.repository == 'stainless-sdks/stagehand-ruby'
36+
if: |-
37+
github.repository == 'stainless-sdks/stagehand-ruby' &&
38+
!startsWith(github.ref, 'refs/heads/stl/')
3739
id: github-oidc
3840
uses: actions/github-script@v8
3941
with:
4042
script: core.setOutput('github_token', await core.getIDToken());
4143

4244
- name: Build and upload gem artifacts
43-
if: github.repository == 'stainless-sdks/stagehand-ruby'
45+
if: |-
46+
github.repository == 'stainless-sdks/stagehand-ruby' &&
47+
!startsWith(github.ref, 'refs/heads/stl/')
4448
env:
4549
URL: https://pkg.stainless.com/s
4650
AUTH: ${{ steps.github-oidc.outputs.github_token }}

0 commit comments

Comments
 (0)