Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions dependency_updater/dependency_updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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))

Expand Down