Generate Typescript SDK #255
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 }} |