Skip to content

Commit a1f43bc

Browse files
committed
chore: enable set_version syntax
1 parent 1ed49f4 commit a1f43bc

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

.github/workflows/sdk_generation.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,19 @@ name: Generate
66
description: Force generation of SDKs
77
type: boolean
88
default: false
9+
set_version:
10+
description: optionally set a specific SDK version
11+
type: string
912
schedule:
1013
- cron: 0 0 * * *
1114
jobs:
1215
generate:
1316
uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15
1417
with:
1518
force: ${{ github.event.inputs.force }}
16-
mode: direct
19+
mode: pr
1720
speakeasy_version: latest
21+
set_version: ${{ github.event.inputs.set_version }}
1822
secrets:
1923
github_access_token: ${{ secrets.GITHUB_TOKEN }}
2024
pypi_token: ${{ secrets.PYPI_TOKEN }}

.github/workflows/sdk_publish.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Publish
2+
permissions:
3+
checks: write
4+
contents: write
5+
pull-requests: write
6+
statuses: write
7+
"on":
8+
push:
9+
branches:
10+
- main
11+
paths:
12+
- RELEASES.md
13+
- '*/RELEASES.md'
14+
jobs:
15+
publish:
16+
uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15
17+
secrets:
18+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
19+
pypi_token: ${{ secrets.PYPI_TOKEN }}
20+
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}

0 commit comments

Comments
 (0)