Skip to content

Commit 73749d6

Browse files
chore(ci): skip uploading artifacts on stainless-internal branches
1 parent c3b5362 commit 73749d6

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,22 +55,28 @@ jobs:
5555
run: ./scripts/build
5656

5757
- name: Get GitHub OIDC Token
58-
if: github.repository == 'stainless-sdks/finch-typescript'
58+
if: |-
59+
github.repository == 'stainless-sdks/finch-typescript' &&
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/finch-typescript'
67+
if: |-
68+
github.repository == 'stainless-sdks/finch-typescript' &&
69+
!startsWith(github.ref, 'refs/heads/stl/')
6670
env:
6771
URL: https://pkg.stainless.com/s
6872
AUTH: ${{ steps.github-oidc.outputs.github_token }}
6973
SHA: ${{ github.sha }}
7074
run: ./scripts/utils/upload-artifact.sh
7175

7276
- name: Upload MCP Server tarball
73-
if: github.repository == 'stainless-sdks/finch-typescript'
77+
if: |-
78+
github.repository == 'stainless-sdks/finch-typescript' &&
79+
!startsWith(github.ref, 'refs/heads/stl/')
7480
env:
7581
URL: https://pkg.stainless.com/s?subpackage=mcp-server
7682
AUTH: ${{ steps.github-oidc.outputs.github_token }}

0 commit comments

Comments
 (0)