Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-timothy-albert committed Nov 18, 2024
1 parent bb298a5 commit 2925b76
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/sdk-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ jobs:
- name: Tune GitHub-hosted runner network
uses: smorimoto/tune-github-hosted-runner-network@v1
- id: release
uses: speakeasy-api/sdk-generation-action@v15
uses: speakeasy-api/sdk-generation-action@v15.32.8
with:
github_access_token: ${{ secrets.github_access_token }}
action: "release"
Expand Down
9 changes: 7 additions & 2 deletions internal/actions/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ func Release() error {
return err
}

fmt.Println("WE HAVE API KEY")
fmt.Println("WE ENTERED")
if os.Getenv("SPEAKEASY_API_KEY") != "" {
fmt.Println("WE HAVE DON'T API KEY")
fmt.Println("WE HAVE API KEY")
if err = addCurrentBranchTagging(g, latestRelease.Languages); err != nil {
logging.Debug("failed to tag registry images: %v", err)
}
Expand Down Expand Up @@ -172,6 +172,7 @@ func addCurrentBranchTagging(g *git.Git, latestRelease map[string]releases.Langu
}

if specificTarget := environment.SpecifiedTarget(); specificTarget != "" {
fmt.Println("WE HAVE SPECIFIC TARGET")
if target, ok := workflow.Targets[specificTarget]; ok {
sources = append(sources, target.Source)
targets = append(targets, specificTarget)
Expand All @@ -184,6 +185,10 @@ func addCurrentBranchTagging(g *git.Git, latestRelease map[string]releases.Langu
return err
}

fmt.Println("WE HAVE RELEASE INFO")
fmt.Println(target.Output)
fmt.Println(releasePath)

if releasePath == "" && target.Output == nil {
sources = append(sources, target.Source)
targets = append(targets, name)
Expand Down

0 comments on commit 2925b76

Please sign in to comment.