Skip to content

Commit 82b071f

Browse files
authored
Merge pull request #1 from speakeasy-api/feat/github_action
add github action
2 parents dfc8a05 + b14f0db commit 82b071f

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/generation.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
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+
13+
jobs:
14+
generate:
15+
uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-generation.yaml@v14
16+
with:
17+
speakeasy_version: latest
18+
openapi_doc_location: https://docs.speakeasyapi.dev/openapi.yaml
19+
languages: |-
20+
- go
21+
create_release: true
22+
force: ${{ github.event.inputs.force }}
23+
secrets:
24+
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}
25+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
26+
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}
27+
rubygems_auth_token: ${{ secrets.RUBYGEMS_AUTH_TOKEN }}

0 commit comments

Comments
 (0)