From b76a81202a1550293bcd88e4c88a77661cc908ff Mon Sep 17 00:00:00 2001 From: Rachid F Date: Tue, 18 Jun 2024 18:52:30 +0200 Subject: [PATCH 1/2] :construction_worker: Added SDK generation --- .github/workflows/sdk-generation.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/sdk-generation.yml diff --git a/.github/workflows/sdk-generation.yml b/.github/workflows/sdk-generation.yml new file mode 100644 index 000000000..765148736 --- /dev/null +++ b/.github/workflows/sdk-generation.yml @@ -0,0 +1,25 @@ +name: Generate TS SDK +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: + github_access_token: ${{ secrets.GH_TOKEN }} + speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} From 4919b26db74d08e818d9f77fc34e2eb83ca92b54 Mon Sep 17 00:00:00 2001 From: Rachid F Date: Tue, 18 Jun 2024 18:55:45 +0200 Subject: [PATCH 2/2] :green_heart: Automated SDK Generation --- .speakeasy/workflow.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .speakeasy/workflow.yaml diff --git a/.speakeasy/workflow.yaml b/.speakeasy/workflow.yaml new file mode 100644 index 000000000..be9b4256c --- /dev/null +++ b/.speakeasy/workflow.yaml @@ -0,0 +1,11 @@ +workflowVersion: 1.0.0 +sources: + OpenAPI-Github-Main: + inputs: + - location: https://raw.githubusercontent.com/panoratech/Panora/main/packages/api/swagger/swagger-spec.json + registry: + location: registry.speakeasyapi.dev/panora/panora/open-api-github-main +targets: + my-first-target: + target: typescript + source: OpenAPI-Github-Main