Skip to content

Generate Typescript SDK #260

Generate Typescript SDK

Generate Typescript SDK #260

name: 'Generate Typescript SDK'
on:
workflow_dispatch:
inputs:
force:
description: Force SDK regeneration even if no changes are detected
required: false
type: boolean
default: false
schedule:
- cron: '0 0 * * *'
permissions:
contents: write
pull-requests: write
id-token: write
jobs:
generate-sdk:
if: |
!startsWith(github.ref_name, 'speakeasy-sdk-regen') &&
!contains(github.event.head_commit.message, 'ci: regenerated with OpenAPI Doc')
uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15
with:
mode: pr
target: typescript
force: ${{ github.event.inputs.force }}
secrets:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}