Skip to content

Generate

Generate #537

name: Generate
permissions:
checks: write
contents: write
pull-requests: write
statuses: write
id-token: write
"on":
workflow_dispatch:
inputs:
force:
description: Force generation of SDKs
type: boolean
default: false
set_version:
description: optionally set a specific SDK version
type: string
schedule:
- cron: 0 0 * * *
jobs:
generate:
uses: Gusto/sdk-generation-action/.github/workflows/workflow-executor.yaml@main
with:
force: ${{ github.event.inputs.force }}
mode: pr
set_version: ${{ github.event.inputs.set_version }}
# Bump Node heap so pyright doesn't OOM on the larger SDKs (the
# default Node max-old-space-size on the runner is ~2 GB, and
# pyright peaks at ~3.8 GB on the v2025-11-15 embedded SDK).
# Verified locally: NODE_OPTIONS=--max-old-space-size=2048 reproduces
# the CI OOM; 4096 makes pyright pass cleanly.
environment: |
NODE_OPTIONS=--max-old-space-size=4096
runs-on: "{\"group\": \"gusto-ubuntu-default\"}"
secrets:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
openapi_doc_auth_token: ${{ secrets.OPENAPI_DOC_AUTH_TOKEN }}
pypi_token: ${{ secrets.PYPI_TOKEN }}
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}