Skip to content

Commit

Permalink
✨ automatically signoff version updates (#2094)
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Richter <[email protected]>
  • Loading branch information
arlimus authored Oct 5, 2023
1 parent d0bc5db commit 5956823
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions providers-sdk/v1/util/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,12 @@ func commitChanges(confs updateConfs) error {
return errors.New("commit is not in repo: " + err.Error())
}

// Getting the GPG key is a hassle, so we use CLI for now...
err = exec.Command("git", "commit", "--amend", "--no-edit", "-S").Run()
if err != nil {
return err
}

log.Info().Msg("committed changes for " + strings.Join(confs.titles(), ", "))
log.Info().Msg("running: git push -u origin " + branchName)

Expand Down

0 comments on commit 5956823

Please sign in to comment.