Skip to content

Commit

Permalink
feat: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-timothy-albert committed Mar 24, 2024
0 parents commit 9301660
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/sdk_generation.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
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:
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: {}

0 comments on commit 9301660

Please sign in to comment.