Update push code samples in generation action

This commit is contained in:
speakeasy-bot
2024-07-01 15:42:29 +00:00
parent 0be9307f80
commit 06e59965bd

View File

@@ -1,28 +1,31 @@
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 push_code_samples_only:
schedule: description: Force push only code samples from SDK generation
- cron: 0 0 * * * type: boolean
default: false
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: direct mode: direct
speakeasy_version: latest push_code_samples_only: ${{ fromJSON(github.event.inputs.push_code_samples_only) }}
secrets: speakeasy_version: latest
github_access_token: ${{ secrets.GITHUB_TOKEN }} secrets:
npm_token: ${{ secrets.NPM_TOKEN }} github_access_token: ${{ secrets.GITHUB_TOKEN }}
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} npm_token: ${{ secrets.NPM_TOKEN }}
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}