Skip to content

Commit d3247da

Browse files
committed
Update generation action to include version overrides
1 parent 940ddc8 commit d3247da

File tree

1 file changed

+30
-26
lines changed

1 file changed

+30
-26
lines changed
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
3+
checks: write
4+
contents: write
5+
pull-requests: write
6+
statuses: write
77
"on":
8-
workflow_dispatch:
9-
inputs:
10-
force:
11-
description: Force generation of SDKs
12-
type: boolean
13-
default: false
14-
set_version:
15-
description: optionally set a specific SDK version
16-
type: string
17-
schedule:
18-
- cron: 0 0 * * *
8+
workflow_dispatch:
9+
inputs:
10+
force:
11+
description: Force generation of SDKs
12+
type: boolean
13+
default: false
14+
set_version:
15+
description: optionally set a specific SDK version
16+
type: string
17+
target:
18+
description: 'optionally: set a specific target to generate, default is all'
19+
type: string
20+
schedule:
21+
- cron: 0 0 * * *
1922
jobs:
20-
generate:
21-
uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15
22-
with:
23-
force: ${{ github.event.inputs.force }}
24-
mode: pr
25-
set_version: ${{ github.event.inputs.set_version }}
26-
speakeasy_version: latest
27-
secrets:
28-
github_access_token: ${{ secrets.GITHUB_TOKEN }}
29-
rubygems_auth_token: ${{ secrets.RUBYGEMS_AUTH_TOKEN }}
30-
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}
23+
generate:
24+
uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15
25+
with:
26+
force: ${{ github.event.inputs.force }}
27+
mode: pr
28+
set_version: ${{ github.event.inputs.set_version }}
29+
speakeasy_version: latest
30+
target: ${{ github.event.inputs.target }}
31+
secrets:
32+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
33+
rubygems_auth_token: ${{ secrets.RUBYGEMS_AUTH_TOKEN }}
34+
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}

0 commit comments

Comments
 (0)