Skip to content

Commit ece01cc

Browse files
committed
Update push code samples in generation action
1 parent 3f30183 commit ece01cc

File tree

1 file changed

+23
-18
lines changed

1 file changed

+23
-18
lines changed

.github/workflows/sdk_generation.yaml

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,26 @@
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-
schedule:
10-
- cron: 0 0 * * *
3+
workflow_dispatch:
4+
inputs:
5+
force:
6+
description: Force generation of SDKs
7+
type: boolean
8+
default: false
9+
push_code_samples_only:
10+
description: Force push only code samples from SDK generation
11+
type: boolean
12+
default: false
13+
schedule:
14+
- cron: 0 0 * * *
1115
jobs:
12-
generate:
13-
uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15
14-
with:
15-
force: ${{ github.event.inputs.force }}
16-
mode: pr
17-
speakeasy_version: latest
18-
secrets:
19-
github_access_token: ${{ secrets.GITHUB_TOKEN }}
20-
nuget_api_key: ${{ secrets.NUGET_API_KEY }}
21-
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}
16+
generate:
17+
uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15
18+
with:
19+
force: ${{ github.event.inputs.force }}
20+
mode: pr
21+
push_code_samples_only: ${{ fromJSON(github.event.inputs.push_code_samples_only) }}
22+
speakeasy_version: latest
23+
secrets:
24+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
25+
nuget_api_key: ${{ secrets.NUGET_API_KEY }}
26+
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}

0 commit comments

Comments
 (0)