Skip to content

Commit

Permalink
ci: add speakeasy github workflows (#555)
Browse files Browse the repository at this point in the history
* ci: add github workflows

* revert stream example
  • Loading branch information
suhailkakar authored May 6, 2024
1 parent 3fc9286 commit d97a089
Show file tree
Hide file tree
Showing 5 changed files with 5,374 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/sdk_generation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
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:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}
14 changes: 14 additions & 0 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
speakeasyVersion: 1.277.4
sources: {}
targets: {}
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
sources:
livepeer-studio-api:
inputs:
- location: https://raw.githubusercontent.com/livepeer/studio/sk/schema-fixes/packages/api/src/schema/api-schema.yaml
overlays:
- location: https://raw.githubusercontent.com/livepeer/livepeer-js/main/codeSamples.yaml
output: output.yaml
targets: {}
10 changes: 10 additions & 0 deletions .speakeasy/workflow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
workflowVersion: 1.0.0
speakeasyVersion: latest
sources:
livepeer-studio-api:
inputs:
- location: https://raw.githubusercontent.com/livepeer/studio/sk/schema-fixes/packages/api/src/schema/api-schema.yaml
overlays:
- location: https://raw.githubusercontent.com/livepeer/livepeer-js/main/codeSamples.yaml
output: output.yaml
targets: {}
2 changes: 1 addition & 1 deletion mint.json
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@
"raiseIssue": true,
"thumbsRating": true
},
"openapi": "https://raw.githubusercontent.com/livepeer/studio/master/packages/api/src/schema/api-schema.yaml",
"openapi": "output.yaml",
"api": {
"baseUrl": "https://livepeer.studio/api"
},
Expand Down
Loading

0 comments on commit d97a089

Please sign in to comment.