Skip to content

Commit 83a8163

Browse files
chore(ci): skip uploading artifacts on stainless-internal branches
1 parent d5737bf commit 83a8163

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
@@ -27,14 +27,18 @@ jobs:
2727
- uses: actions/checkout@v6
2828

2929
- name: Get GitHub OIDC Token
30-
if: github.repository == 'stainless-sdks/sent-dm-go'
30+
if: |-
31+
github.repository == 'stainless-sdks/sent-dm-go' &&
32+
!startsWith(github.ref, 'refs/heads/stl/')
3133
id: github-oidc
3234
uses: actions/github-script@v8
3335
with:
3436
script: core.setOutput('github_token', await core.getIDToken());
3537

3638
- name: Upload tarball
37-
if: github.repository == 'stainless-sdks/sent-dm-go'
39+
if: |-
40+
github.repository == 'stainless-sdks/sent-dm-go' &&
41+
!startsWith(github.ref, 'refs/heads/stl/')
3842
env:
3943
URL: https://pkg.stainless.com/s
4044
AUTH: ${{ steps.github-oidc.outputs.github_token }}

0 commit comments

Comments
 (0)