Skip to content

Generate

Generate #191

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: |
- https://github.com/formancehq/stack/releases/download/v2.0.17/generate.json
languages: |-
- python
publish_python: true
mode: pr
force: ${{ github.event.inputs.force }}
secrets:
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}
github_access_token: ${{ secrets.GITHUB_TOKEN }}
pypi_token: ${{ secrets.PYPI_SECRET }}