diff --git a/.github/workflows/workflow-executor.yaml b/.github/workflows/workflow-executor.yaml index 1e15c7db..723177ca 100644 --- a/.github/workflows/workflow-executor.yaml +++ b/.github/workflows/workflow-executor.yaml @@ -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 }} diff --git a/action.yml b/action.yml index a3bb1302..2b3ca30f 100644 --- a/action.yml +++ b/action.yml @@ -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 }} diff --git a/internal/actions/runWorkflow.go b/internal/actions/runWorkflow.go index 331e7af6..8c94b16a 100644 --- a/internal/actions/runWorkflow.go +++ b/internal/actions/runWorkflow.go @@ -183,9 +183,12 @@ 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) @@ -193,7 +196,7 @@ func finalize(outputs map[string]string, branchName string, anythingRegenerated return err } - if environment.CreateGitRelease() { + if !sourcesOnly && environment.CreateGitRelease() { if err := g.CreateRelease(*releaseInfo); err != nil { return err }