Skip to content

Commit a3b3292

Browse files
chore(ci): skip uploading artifacts on stainless-internal branches
1 parent 22abd6f commit a3b3292

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
@@ -55,14 +55,18 @@ jobs:
5555
run: uv build
5656

5757
- name: Get GitHub OIDC Token
58-
if: github.repository == 'stainless-sdks/cas-parser-python'
58+
if: |-
59+
github.repository == 'stainless-sdks/cas-parser-python' &&
60+
!startsWith(github.ref, 'refs/heads/stl/')
5961
id: github-oidc
6062
uses: actions/github-script@v8
6163
with:
6264
script: core.setOutput('github_token', await core.getIDToken());
6365

6466
- name: Upload tarball
65-
if: github.repository == 'stainless-sdks/cas-parser-python'
67+
if: |-
68+
github.repository == 'stainless-sdks/cas-parser-python' &&
69+
!startsWith(github.ref, 'refs/heads/stl/')
6670
env:
6771
URL: https://pkg.stainless.com/s
6872
AUTH: ${{ steps.github-oidc.outputs.github_token }}

0 commit comments

Comments
 (0)