From 5a36e47a13752c5dccc87e97b9cc9a96a0c0e998 Mon Sep 17 00:00:00 2001 From: Cody Wang Date: Fri, 3 Oct 2025 11:36:49 -0400 Subject: [PATCH 1/2] quick fix --- dependency_updater/dependency_updater.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dependency_updater/dependency_updater.go b/dependency_updater/dependency_updater.go index 461344503..15ec78e73 100644 --- a/dependency_updater/dependency_updater.go +++ b/dependency_updater/dependency_updater.go @@ -115,7 +115,7 @@ func updater(token string, repoPath string, commit bool, githubAction bool) erro updatedDependencies = append(updatedDependencies, updatedDependency) } } - + e := createVersionsEnv(repoPath, dependencies) if e != nil { return fmt.Errorf("error creating versions.env: %s", e) @@ -264,8 +264,6 @@ func getVersionAndCommit(ctx context.Context, client *github.Client, dependencie diff, } } - // For branch tracking, return branch name as the tag - return dependencies[dependencyType].Branch, commit, updatedDependency, nil } if version != nil { @@ -314,6 +312,10 @@ func createVersionsEnv(repoPath string, dependencies Dependencies) error { dependencyPrefix := strings.ToUpper(dependency) + if dependencies[dependency].Tracking == "branch" { + dependencies[dependency].Tag = dependencies[dependency].Branch + } + envLines = append(envLines, fmt.Sprintf("export %s_%s=%s", dependencyPrefix, "TAG", dependencies[dependency].Tag)) From 11e00a96aad195d04c6e7093516db9887089d8d3 Mon Sep 17 00:00:00 2001 From: Cody Wang Date: Fri, 3 Oct 2025 11:38:04 -0400 Subject: [PATCH 2/2] fmt --- dependency_updater/dependency_updater.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dependency_updater/dependency_updater.go b/dependency_updater/dependency_updater.go index 15ec78e73..81ed417bc 100644 --- a/dependency_updater/dependency_updater.go +++ b/dependency_updater/dependency_updater.go @@ -115,7 +115,7 @@ func updater(token string, repoPath string, commit bool, githubAction bool) erro updatedDependencies = append(updatedDependencies, updatedDependency) } } - + e := createVersionsEnv(repoPath, dependencies) if e != nil { return fmt.Errorf("error creating versions.env: %s", e) @@ -143,7 +143,7 @@ func createCommitMessage(updatedDependencies []VersionUpdateInfo, repoPath strin } commitDescription = strings.TrimSuffix(commitDescription, " ") commitTitle += strings.Join(repos, ", ") - + if githubAction { err := writeToGithubOutput(commitTitle, commitDescription, repoPath) if err != nil {