Skip to content

Commit

Permalink
Merge pull request #511 from panoratech/speakeasy-sdk
Browse files Browse the repository at this point in the history
Speakeasy sdk
  • Loading branch information
rflihxyz authored Jun 18, 2024
2 parents dd6e566 + 4919b26 commit 6bd60fc
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/sdk-generation.yml
Original file line number Diff line number Diff line change
@@ -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 }}
11 changes: 11 additions & 0 deletions .speakeasy/workflow.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 6bd60fc

Please sign in to comment.