Skip to content

Commit 5382eba

Browse files
author
Nishu Goel
committed
Speakeasy miigrate workflows
1 parent 64241db commit 5382eba

File tree

2 files changed

+27
-26
lines changed

2 files changed

+27
-26
lines changed
Lines changed: 18 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,20 @@
11
name: Generate
2-
3-
on:
4-
workflow_dispatch: # Allows manual triggering of the workflow to generate SDK
5-
inputs:
6-
force:
7-
description: "Force generation of SDKs"
8-
type: boolean
9-
default: false
10-
schedule:
11-
- cron: 0 0 * * * # Runs every day at midnight
12-
2+
"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 * * *
1311
jobs:
14-
generate:
15-
uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-generation.yaml@v14
16-
with:
17-
speakeasy_version: latest
18-
openapi_docs: |
19-
- https://docs.api.epilot.io/template-variables.yaml
20-
overlay_docs: |
21-
- ./overlay.yaml
22-
languages: |
23-
- terraform
24-
mode: pr
25-
force: ${{ github.event.inputs.force }}
26-
secrets:
27-
github_access_token: ${{ secrets.GITHUB_TOKEN }}
28-
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}
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+
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}

.speakeasy/workflow.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
workflowVersion: 1.0.0
2+
sources:
3+
my-source:
4+
inputs:
5+
- location: https://docs.api.epilot.io/template-variables.yaml
6+
targets:
7+
terraform:
8+
target: terraform
9+
source: my-source

0 commit comments

Comments
 (0)