@@ -134,18 +134,18 @@ func updater(token string, repoPath string, commit bool, githubAction bool) erro
134134func createCommitMessage (updatedDependencies []VersionUpdateInfo , repoPath string , githubAction bool ) error {
135135 var repos []string
136136 commitTitle := "chore: updated "
137- commitDescription := "Updated dependencies for: \n "
137+ commitDescription := "Updated dependencies for: "
138138
139139 for _ , dependency := range updatedDependencies {
140140 repo , tag := dependency .Repo , dependency .To
141- commitDescription += repo + " => " + tag + " (" + dependency .DiffUrl + ")\n "
141+ commitDescription += repo + " => " + tag + " (" + dependency .DiffUrl + ") "
142142 repos = append (repos , repo )
143143 }
144- commitDescription = strings .TrimSuffix (commitDescription , "\n " )
144+ commitDescription = strings .TrimSuffix (commitDescription , " " )
145145 commitTitle += strings .Join (repos , ", " )
146146
147147 if githubAction {
148- err := createGitMessageEnv (commitTitle , commitDescription , repoPath )
148+ err := writeToGithubOutput (commitTitle , commitDescription , repoPath )
149149 if err != nil {
150150 return fmt .Errorf ("error creating git commit message: %s" , err )
151151 }
@@ -339,7 +339,7 @@ func createVersionsEnv(repoPath string, dependencies Dependencies) error {
339339 return nil
340340}
341341
342- func createGitMessageEnv (title string , description string , repoPath string ) error {
342+ func writeToGithubOutput (title string , description string , repoPath string ) error {
343343 file := os .Getenv ("GITHUB_OUTPUT" )
344344 f , err := os .OpenFile (file , os .O_APPEND | os .O_CREATE | os .O_WRONLY , 0644 )
345345 if err != nil {
0 commit comments