Skip to content

Commit ae33e27

Browse files
committed
Update generation action to include version overrides
1 parent 837ef98 commit ae33e27

File tree

1 file changed

+30
-26
lines changed

1 file changed

+30
-26
lines changed

.github/workflows/sdk_generation.yaml

Lines changed: 30 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,34 @@
11
name: Generate
22
permissions:
3-
checks: write
4-
contents: write
5-
pull-requests: write
6-
statuses: write
7-
id-token: write
3+
checks: write
4+
contents: write
5+
pull-requests: write
6+
statuses: write
7+
id-token: write
88
"on":
9-
workflow_dispatch:
10-
inputs:
11-
force:
12-
description: Force generation of SDKs
13-
type: boolean
14-
default: false
15-
set_version:
16-
description: optionally set a specific SDK version
17-
type: string
18-
schedule:
19-
- cron: 0 0 * * *
9+
workflow_dispatch:
10+
inputs:
11+
force:
12+
description: Force generation of SDKs
13+
type: boolean
14+
default: false
15+
set_version:
16+
description: optionally set a specific SDK version
17+
type: string
18+
target:
19+
description: 'optionally: set a specific target to generate, default is all'
20+
type: string
21+
schedule:
22+
- cron: 0 0 * * *
2023
jobs:
21-
generate:
22-
uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15
23-
with:
24-
force: ${{ github.event.inputs.force }}
25-
mode: pr
26-
set_version: ${{ github.event.inputs.set_version }}
27-
secrets:
28-
github_access_token: ${{ secrets.GITHUB_TOKEN }}
29-
npm_token: ${{ secrets.NPM_TOKEN }}
30-
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}
24+
generate:
25+
uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15
26+
with:
27+
force: ${{ github.event.inputs.force }}
28+
mode: pr
29+
set_version: ${{ github.event.inputs.set_version }}
30+
target: ${{ github.event.inputs.target }}
31+
secrets:
32+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
33+
npm_token: ${{ secrets.NPM_TOKEN }}
34+
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}

0 commit comments

Comments
 (0)