Skip to content

Commit 75fc0aa

Browse files
committed
Update generation action to include version overrides
1 parent b09cefe commit 75fc0aa

File tree

1 file changed

+26
-22
lines changed

1 file changed

+26
-22
lines changed

.github/workflows/sdk_generation.yaml

+26-22
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,29 @@
11
name: Generate
22
"on":
3-
workflow_dispatch:
4-
inputs:
5-
force:
6-
description: Force generation of SDKs
7-
type: boolean
8-
default: false
9-
set_version:
10-
description: optionally set a specific SDK version
11-
type: string
12-
schedule:
13-
- cron: 0 0 * * *
3+
workflow_dispatch:
4+
inputs:
5+
force:
6+
description: Force generation of SDKs
7+
type: boolean
8+
default: false
9+
set_version:
10+
description: optionally set a specific SDK version
11+
type: string
12+
target:
13+
description: 'optionally: set a specific target to generate, default is all'
14+
type: string
15+
schedule:
16+
- cron: 0 0 * * *
1417
jobs:
15-
generate:
16-
uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15
17-
with:
18-
force: ${{ github.event.inputs.force }}
19-
mode: pr
20-
speakeasy_version: latest
21-
set_version: ${{ github.event.inputs.set_version }}
22-
secrets:
23-
github_access_token: ${{ secrets.GITHUB_TOKEN }}
24-
pypi_token: ${{ secrets.PYPI_TOKEN }}
25-
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}
18+
generate:
19+
uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15
20+
with:
21+
force: ${{ github.event.inputs.force }}
22+
mode: pr
23+
set_version: ${{ github.event.inputs.set_version }}
24+
speakeasy_version: latest
25+
target: ${{ github.event.inputs.target }}
26+
secrets:
27+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
28+
pypi_token: ${{ secrets.PYPI_TOKEN }}
29+
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}

0 commit comments

Comments
 (0)