Added Compass API push workflow #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |