Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .github/workflows/update-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ jobs:
with:
title: ${{ steps.run_dependency_updater.outputs.TITLE }}
commit-message: ${{ steps.run_dependency_updater.outputs.TITLE }}
body: ${{ steps.run_dependency_updater.outputs.DESC }}
body: "${{ steps.run_dependency_updater.outputs.DESC }}"
branch: run-dependency-updater
delete-branch: true
7 changes: 3 additions & 4 deletions dependency_updater/dependency_updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,11 @@ func createCommitMessage(updatedDependencies []VersionUpdateInfo, repoPath strin
commitDescription += repo + " => " + tag + " (" + dependency.DiffUrl + ") "
repos = append(repos, repo)
}
commitDescription = strings.TrimSuffix(commitDescription, "\n")
commitDescription = strings.TrimSuffix(commitDescription, " ")
commitTitle += strings.Join(repos, ", ")

if githubAction {
commitDescription = "\"" + commitDescription + "\""
err := createGitMessageEnv(commitTitle, commitDescription, repoPath)
err := writeToGithubOutput(commitTitle, commitDescription, repoPath)
if err != nil {
return fmt.Errorf("error creating git commit message: %s", err)
}
Expand Down Expand Up @@ -340,7 +339,7 @@ func createVersionsEnv(repoPath string, dependencies Dependencies) error {
return nil
}

func createGitMessageEnv(title string, description string, repoPath string) error {
func writeToGithubOutput(title string, description string, repoPath string) error {
file := os.Getenv("GITHUB_OUTPUT")
f, err := os.OpenFile(file, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
if err != nil {
Expand Down