Skip to content

Commit 6874252

Browse files
chore(ci): skip uploading artifacts on stainless-internal branches
1 parent f6fde05 commit 6874252

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,18 @@ jobs:
5858
run: uv build
5959

6060
- name: Get GitHub OIDC Token
61-
if: github.repository == 'stainless-sdks/runloop-python'
61+
if: |-
62+
github.repository == 'stainless-sdks/runloop-python' &&
63+
!startsWith(github.ref, 'refs/heads/stl/')
6264
id: github-oidc
6365
uses: actions/github-script@v8
6466
with:
6567
script: core.setOutput('github_token', await core.getIDToken());
6668

6769
- name: Upload tarball
68-
if: github.repository == 'stainless-sdks/runloop-python'
70+
if: |-
71+
github.repository == 'stainless-sdks/runloop-python' &&
72+
!startsWith(github.ref, 'refs/heads/stl/')
6973
env:
7074
URL: https://pkg.stainless.com/s
7175
AUTH: ${{ steps.github-oidc.outputs.github_token }}

0 commit comments

Comments
 (0)