Skip to content

Commit dec3cb0

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

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
@@ -65,14 +65,18 @@ jobs:
6565
run: ./scripts/build
6666

6767
- name: Get GitHub OIDC Token
68-
if: github.repository == 'stainless-sdks/cas-parser-java'
68+
if: |-
69+
github.repository == 'stainless-sdks/cas-parser-java' &&
70+
!startsWith(github.ref, 'refs/heads/stl/')
6971
id: github-oidc
7072
uses: actions/github-script@v8
7173
with:
7274
script: core.setOutput('github_token', await core.getIDToken());
7375

7476
- name: Build and upload Maven artifacts
75-
if: github.repository == 'stainless-sdks/cas-parser-java'
77+
if: |-
78+
github.repository == 'stainless-sdks/cas-parser-java' &&
79+
!startsWith(github.ref, 'refs/heads/stl/')
7680
env:
7781
URL: https://pkg.stainless.com/s
7882
AUTH: ${{ steps.github-oidc.outputs.github_token }}

0 commit comments

Comments
 (0)