Skip to content

Commit 7ed17f8

Browse files
committed
Add action setup
1 parent d7ec00a commit 7ed17f8

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

.github/workflows/sdk_generation.yaml

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +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-
target:
18-
description: 'optionally: set a specific target to generate, default is all'
19-
type: string
20-
schedule:
21-
- 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 * * *
2222
jobs:
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 }}
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)