Skip to content

Commit

Permalink
feat(gen): speakeasy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
grepory committed Dec 3, 2024
0 parents commit 1475df7
Show file tree
Hide file tree
Showing 7 changed files with 531 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# This allows generated code to be indexed correctly
*.go linguist-generated=false
29 changes: 29 additions & 0 deletions .github/workflows/sdk_generation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Generate
permissions:
checks: write
contents: write
pull-requests: write
statuses: write
id-token: write
"on":
workflow_dispatch:
inputs:
force:
description: Force generation of SDKs
type: boolean
default: false
set_version:
description: optionally set a specific SDK version
type: string
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
set_version: ${{ github.event.inputs.set_version }}
secrets:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# .gitignore
37 changes: 37 additions & 0 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
speakeasyVersion: 1.448.2
sources:
SolarWinds Observability:
sourceNamespace: solar-winds-observability
sourceRevisionDigest: sha256:280e23fc7295a3ceae14d75468f84786ec9fef241d0703dc99d061c401baa78c
sourceBlobDigest: sha256:2c17034a64e9758775effca637fd1eb6c850fd3bcb688ef8d4cd4fe6c1b22429
tags:
- latest
- 1.0.0
targets:
solar-winds:
source: SolarWinds Observability
sourceNamespace: solar-winds-observability
sourceRevisionDigest: sha256:280e23fc7295a3ceae14d75468f84786ec9fef241d0703dc99d061c401baa78c
sourceBlobDigest: sha256:2c17034a64e9758775effca637fd1eb6c850fd3bcb688ef8d4cd4fe6c1b22429
codeSamplesNamespace: solar-winds-observability-go-code-samples
codeSamplesRevisionDigest: sha256:1e1bee0feba0d8bde821cb15a56d89dea9ddfe56870270ab0f2053a76fe0848c
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
sources:
SolarWinds Observability:
inputs:
- location: https://api.na-01.cloud.solarwinds.com/v1/openapi.json
overlays:
- location: overlay-codesamples.yaml
output: openapi.yaml
registry:
location: registry.speakeasyapi.dev/swo/swo/solar-winds-observability
targets:
solar-winds:
target: go
source: SolarWinds Observability
codeSamples:
registry:
location: registry.speakeasyapi.dev/swo/swo/solar-winds-observability-go-code-samples
blocking: false
16 changes: 16 additions & 0 deletions .speakeasy/workflow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
workflowVersion: 1.0.0
speakeasyVersion: latest
sources:
SolarWinds Observability:
inputs:
- location: https://api.na-01.cloud.solarwinds.com/v1/openapi.json
overlays:
- location: overlay-codesamples.yaml
output: openapi.yaml
registry:
location: registry.speakeasyapi.dev/swo/swo/solar-winds-observability
targets:
solar-winds:
target: go
source: SolarWinds Observability
output: solarwinds
Loading

0 comments on commit 1475df7

Please sign in to comment.