Skip to content

Commit 10bb5d6

Browse files
authored
Merge pull request #71 from speakeasy-sdks/chore/migrate-speakeasy-workflows
chore: migrate to speakeasy workflows
2 parents 0bd55a5 + 7add289 commit 10bb5d6

File tree

2 files changed

+33
-42
lines changed

2 files changed

+33
-42
lines changed
+22-28
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,26 @@
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-
schedule:
15-
- cron: 0 0 * * *
8+
workflow_dispatch:
9+
inputs:
10+
force:
11+
description: Force generation of SDKs
12+
type: boolean
13+
default: false
14+
schedule:
15+
- cron: 0 0 * * *
1616
jobs:
17-
generate:
18-
uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-generation.yaml@v14
19-
with:
20-
force: ${{ github.event.inputs.force }}
21-
languages: |
22-
- python
23-
mode: pr
24-
openapi_doc_auth_header: x-api-key
25-
openapi_docs: |
26-
- https://app.speakeasyapi.dev/v1/apis/public-api/version/1.0.0/schema/download
27-
publish_python: true
28-
speakeasy_version: latest
29-
secrets:
30-
github_access_token: ${{ secrets.GITHUB_TOKEN }}
31-
openapi_doc_auth_token: ${{ secrets.SPEAKEASY_API_KEY }}
32-
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}
17+
generate:
18+
uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15
19+
with:
20+
force: ${{ github.event.inputs.force }}
21+
mode: pr
22+
speakeasy_version: latest
23+
secrets:
24+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
25+
openapi_doc_auth_token: ${{ secrets.SPEAKEASY_API_KEY }}
26+
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}
+11-14
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
name: Publish
22
"on":
3-
push:
4-
branches:
5-
- main
6-
paths:
7-
- RELEASES.md
3+
push:
4+
branches:
5+
- main
6+
paths:
7+
- RELEASES.md
88
jobs:
9-
publish:
10-
uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v14
11-
with:
12-
create_release: true
13-
publish_python: true
14-
secrets:
15-
github_access_token: ${{ secrets.GITHUB_TOKEN }}
16-
pypi_token: ${{ secrets.PYPI_TOKEN }}
17-
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}
9+
publish:
10+
uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15
11+
secrets:
12+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
13+
pypi_token: ${{ secrets.PYPI_TOKEN }}
14+
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}

0 commit comments

Comments
 (0)