-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (41 loc) · 1.22 KB
/
sdk_generation.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Generate Speakeasy SDK
permissions:
checks: write
contents: write
pull-requests: write
statuses: write
on:
push:
branches: [ main ]
# workflow_dispatch:
# inputs:
# force:
# description: Force generation of SDKs
# type: boolean
# default: false
# schedule:
# - cron: 0 0 * * *
jobs:
generate-sdks:
name: Generate SDKs
runs-on: ubuntu-latest
steps:
- name: Tune GitHub-hosted runner network
uses: smorimoto/tune-github-hosted-runner-network@v1
- id: run-workflow
name: Run Generation Workflow
uses: speakeasy-api/sdk-generation-action@v15
with:
force: ${{ github.event.inputs.force }}
mode: direct
speakeasy_version: latest
working_directory: sdks/simple-payments-sdk-java
github_access_token: ${{ secrets.GITHUB_TOKEN }}
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}
# generate:
# uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15
# with:
# force: ${{ github.event.inputs.force }}
# mode: direct
# speakeasy_version: latest
# working_directory: sdks/simple-payments-sdk-java