Update push code samples in generation action

This commit is contained in:
speakeasy-bot
2024-07-16 22:19:13 +00:00
parent 56295c1c8c
commit 1d52387886

View File

@@ -1,30 +1,35 @@
name: Generate name: Generate
permissions: permissions:
checks: write checks: write
contents: write contents: write
pull-requests: write pull-requests: write
statuses: write statuses: write
"on": "on":
workflow_dispatch: workflow_dispatch:
inputs: inputs:
force: force:
description: Force generation of SDKs description: Force generation of SDKs
type: boolean type: boolean
default: false default: false
set_version: push_code_samples_only:
description: optionally set a specific SDK version description: Force push only code samples from SDK generation
type: string type: boolean
schedule: default: false
- cron: 0 0 * * * set_version:
description: optionally set a specific SDK version
type: string
schedule:
- cron: 0 0 * * *
jobs: jobs:
generate: generate:
uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15 uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15
with: with:
force: ${{ github.event.inputs.force }} force: ${{ github.event.inputs.force }}
mode: pr mode: pr
set_version: ${{ github.event.inputs.set_version }} push_code_samples_only: ${{ fromJSON(github.event.inputs.push_code_samples_only != '' && github.event.inputs.push_code_samples_only || 'false') }}
speakeasy_version: latest set_version: ${{ github.event.inputs.set_version }}
secrets: speakeasy_version: latest
github_access_token: ${{ secrets.GITHUB_TOKEN }} secrets:
pypi_token: ${{ secrets.PYPI_TOKEN }} github_access_token: ${{ secrets.GITHUB_TOKEN }}
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} pypi_token: ${{ secrets.PYPI_TOKEN }}
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}