|
1 | 1 | name: Generate |
2 | 2 | permissions: |
3 | | - checks: write |
4 | | - contents: write |
5 | | - pull-requests: write |
6 | | - statuses: write |
| 3 | + checks: write |
| 4 | + contents: write |
| 5 | + pull-requests: write |
| 6 | + statuses: write |
7 | 7 | "on": |
8 | | - workflow_dispatch: |
9 | | - inputs: |
10 | | - force: |
11 | | - description: Force generation of SDKs |
12 | | - type: boolean |
13 | | - default: false |
14 | | - push_code_samples_only: |
15 | | - description: Force push only code samples from SDK generation |
16 | | - type: boolean |
17 | | - default: false |
18 | | - set_version: |
19 | | - description: optionally set a specific SDK version |
20 | | - type: string |
21 | | - target: |
22 | | - description: 'optionally: set a specific target to generate, default is all' |
23 | | - type: string |
24 | | - schedule: |
25 | | - - cron: 0 0 * * * |
| 8 | + workflow_dispatch: |
| 9 | + inputs: |
| 10 | + force: |
| 11 | + description: Force generation of SDKs |
| 12 | + type: boolean |
| 13 | + default: false |
| 14 | + push_code_samples_only: |
| 15 | + description: Force push only code samples from SDK generation |
| 16 | + type: boolean |
| 17 | + default: false |
| 18 | + set_version: |
| 19 | + description: optionally set a specific SDK version |
| 20 | + type: string |
| 21 | + target: |
| 22 | + description: 'optionally: set a specific target to generate, default is all' |
| 23 | + type: string |
| 24 | + schedule: |
| 25 | + - cron: 0 0 * * * |
26 | 26 | jobs: |
27 | | - generate: |
28 | | - uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15 |
29 | | - with: |
30 | | - force: ${{ github.event.inputs.force }} |
31 | | - mode: pr |
32 | | - push_code_samples_only: ${{ fromJSON(github.event.inputs.push_code_samples_only != '' && github.event.inputs.push_code_samples_only || 'false') }} |
33 | | - set_version: ${{ github.event.inputs.set_version }} |
34 | | - speakeasy_version: latest |
35 | | - target: ${{ github.event.inputs.target }} |
36 | | - secrets: |
37 | | - github_access_token: ${{ secrets.GITHUB_TOKEN }} |
38 | | - npm_token: ${{ secrets.NPM_TOKEN }} |
39 | | - speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} |
| 27 | + generate: |
| 28 | + uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15 |
| 29 | + with: |
| 30 | + force: ${{ github.event.inputs.force }} |
| 31 | + mode: pr |
| 32 | + push_code_samples_only: ${{ fromJSON(github.event.inputs.push_code_samples_only != '' && github.event.inputs.push_code_samples_only || 'false') }} |
| 33 | + set_version: ${{ github.event.inputs.set_version }} |
| 34 | + speakeasy_version: latest |
| 35 | + target: ${{ github.event.inputs.target }} |
| 36 | + secrets: |
| 37 | + github_access_token: ${{ secrets.GITHUB_TOKEN }} |
| 38 | + npm_token: ${{ secrets.NPM_TOKEN }} |
| 39 | + speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} |
0 commit comments