Generate #159
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 | |
on: | |
workflow_dispatch: # Allows manual triggering of the workflow to generate SDK | |
inputs: | |
force: | |
description: "Force generation of SDKs" | |
type: boolean | |
default: false | |
schedule: | |
- cron: 0 0 * * * # Runs every day at midnight | |
jobs: | |
get_openai_spec_url: | |
name: Get OpenAPI Spec URL | |
runs-on: ubuntu-latest | |
steps: | |
- uses: formancehq/action-sdks@v1 | |
id: get_openai_spec_url | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
outputs: | |
openapi_spec_url: ${{ steps.get_openai_spec_url.outputs.openapi_spec_url }} | |
generate: | |
needs: get_openai_spec_url | |
uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-generation.yaml@v14 | |
with: | |
speakeasy_version: latest | |
openapi_docs: | | |
- ${{ needs.get_openai_spec_url.outputs.openapi_spec_url }} | |
languages: |- | |
- go | |
mode: pr | |
force: ${{ github.event.inputs.force }} | |
secrets: | |
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} | |
github_access_token: ${{ secrets.GITHUB_TOKEN }} |