From 93016605bc66ea6b2b2317de43ba7cc762495927 Mon Sep 17 00:00:00 2001 From: Ryan Albert Date: Sat, 23 Mar 2024 18:38:07 -0700 Subject: [PATCH] feat: initial commit --- .github/workflows/sdk_generation.yaml | 26 ++++++++++++++++++++++++++ .speakeasy/workflow.yaml | 11 +++++++++++ 2 files changed, 37 insertions(+) create mode 100644 .github/workflows/sdk_generation.yaml create mode 100644 .speakeasy/workflow.yaml diff --git a/.github/workflows/sdk_generation.yaml b/.github/workflows/sdk_generation.yaml new file mode 100644 index 0000000..4be89a4 --- /dev/null +++ b/.github/workflows/sdk_generation.yaml @@ -0,0 +1,26 @@ +name: Generate +permissions: + checks: write + contents: write + pull-requests: write + statuses: write +"on": + workflow_dispatch: + inputs: + force: + description: Force generation of SDKs + type: boolean + default: false + schedule: + - cron: 0 0 * * * +jobs: + generate: + uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15 + with: + force: ${{ github.event.inputs.force }} + mode: pr + speakeasy_version: latest + secrets: + auth_token: ${{ secrets.AUTH_TOKEN }} + github_access_token: ${{ secrets.GITHUB_TOKEN }} + speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} diff --git a/.speakeasy/workflow.yaml b/.speakeasy/workflow.yaml new file mode 100644 index 0000000..17a0d54 --- /dev/null +++ b/.speakeasy/workflow.yaml @@ -0,0 +1,11 @@ +workflowVersion: 1.0.0 +sources: + docs-source: + inputs: + - location: https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/examples/v3.0/petstore.yaml + overlays: + - location: https://raw.githubusercontent.com/ryan-timothy-albert/sample-sdks/main/go/codeSample.yaml + - location: https://raw.githubusercontent.com/ryan-timothy-albert/sample-sdks/main/py/codeSample.yaml + - location: https://raw.githubusercontent.com/ryan-timothy-albert/sample-sdks/main/ts/codeSample.yaml + output: openapi.yaml +targets: {}