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
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
name: build
permissions:
@ -61,12 +61,14 @@ jobs:
run: rye build
- name: Get GitHub OIDC Token
if: github.repository == 'stainless-sdks/opencode-python'
id: github-oidc
uses: actions/github-script@v6
with:
script: core.setOutput('github_token', await core.getIDToken());
- name: Upload tarball
if: github.repository == 'stainless-sdks/opencode-python'
env:
URL: https://pkg.stainless.com/s
AUTH: ${{ steps.github-oidc.outputs.github_token }}