Skip to content

Commit 1ddb920

Browse files
stainless-app[bot]batuhan
authored andcommitted
fix: no longer require an API key when building on production repos
1 parent d2b79e0 commit 1ddb920

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/actions/setup-go/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,20 @@ name: Setup Go
22
description: 'Sets up Go environment with private modules'
33
inputs:
44
stainless-api-key:
5-
required: true
5+
required: false
66
description: the value of the STAINLESS_API_KEY secret
77
runs:
88
using: composite
99
steps:
1010
- uses: stainless-api/retrieve-github-access-token@v1
11+
if: github.repository == 'stainless-sdks/beeper-desktop-api-cli'
1112
id: get_token
1213
with:
1314
repo: stainless-sdks/beeper-desktop-api-go
1415
stainless-api-key: ${{ inputs.stainless-api-key }}
1516

1617
- name: Configure Git for access to the Go SDK's staging repo
18+
if: github.repository == 'stainless-sdks/beeper-desktop-api-cli'
1719
shell: bash
1820
run: git config --global url."https://x-access-token:${{ steps.get_token.outputs.github_access_token }}@github.com/stainless-sdks/beeper-desktop-api-go".insteadOf "https://github.com/stainless-sdks/beeper-desktop-api-go"
1921

0 commit comments

Comments
 (0)