chore: update github action

This commit is contained in:
stainless-app[bot] 2025-08-22 02:37:29 +00:00
parent 5f8681cf63
commit a1b54afef1

View file

@ -36,7 +36,7 @@ jobs:
run: ./scripts/lint run: ./scripts/lint
build: build:
if: github.repository == 'stainless-sdks/opencode-python' && (github.event_name == 'push' || github.event.pull_request.head.repo.fork) if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
timeout-minutes: 10 timeout-minutes: 10
name: build name: build
permissions: permissions:
@ -61,12 +61,14 @@ jobs:
run: rye build run: rye build
- name: Get GitHub OIDC Token - name: Get GitHub OIDC Token
if: github.repository == 'stainless-sdks/opencode-python'
id: github-oidc id: github-oidc
uses: actions/github-script@v6 uses: actions/github-script@v6
with: with:
script: core.setOutput('github_token', await core.getIDToken()); script: core.setOutput('github_token', await core.getIDToken());
- name: Upload tarball - name: Upload tarball
if: github.repository == 'stainless-sdks/opencode-python'
env: env:
URL: https://pkg.stainless.com/s URL: https://pkg.stainless.com/s
AUTH: ${{ steps.github-oidc.outputs.github_token }} AUTH: ${{ steps.github-oidc.outputs.github_token }}