Skip to content

Commit

Permalink
feat: direct updates sources
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-timothy-albert committed Mar 28, 2024
1 parent 1c9699d commit f8cc45e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/workflow-executor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ jobs:
uses: smorimoto/tune-github-hosted-runner-network@v1
- id: run-workflow
name: Run Generation Workflow
uses: speakeasy-api/sdk-generation-action@v15
uses: speakeasy-api/sdk-generation-action@v15.2.0
with:
speakeasy_version: ${{ inputs.speakeasy_version }}
github_access_token: ${{ secrets.github_access_token }}
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ outputs:
description: "The location of the OpenAPI document used for generation"
runs:
using: "docker"
image: "docker://ghcr.io/speakeasy-api/sdk-generation-action:v15"
image: "docker://ghcr.io/speakeasy-api/sdk-generation-action:v15.2.0"
env:
SPEAKEASY_API_KEY: ${{ inputs.speakeasy_api_key }}
SPEAKEASY_SERVER_URL: ${{ inputs.speakeasy_server_url }}
Expand Down
11 changes: 7 additions & 4 deletions internal/actions/runWorkflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,17 +183,20 @@ func finalize(outputs map[string]string, branchName string, anythingRegenerated
return err
}
case environment.ModeDirect:
releaseInfo, err := getReleasesInfo()
if err != nil {
return err
var releaseInfo *releases.ReleasesInfo
if !sourcesOnly {
releaseInfo, err = getReleasesInfo()
if err != nil {
return err
}
}

commitHash, err := g.MergeBranch(branchName)
if err != nil {
return err
}

if environment.CreateGitRelease() {
if !sourcesOnly && environment.CreateGitRelease() {
if err := g.CreateRelease(*releaseInfo); err != nil {
return err
}
Expand Down

0 comments on commit f8cc45e

Please sign in to comment.