Skip to content

Commit

Permalink
fix(changelog): when overriding release version created tag was not o…
Browse files Browse the repository at this point in the history
…verridden
  • Loading branch information
zbindenren committed Jan 4, 2021
1 parent 669e0ca commit e185c32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/cmd/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@ func (c Command) runRelease(dst io.Writer, l *flash.Logger, cfg config.Changelog

l.Debug("committing changes")

if err := g.CommitFile(*c.file, fmt.Sprintf("chore: update changelog with %s release", next.String())); err != nil {
if err := g.CommitFile(*c.file, fmt.Sprintf("chore: update changelog with %s release", version.String())); err != nil {
return err
}

l.Debugw("create release tag", "release", "v"+next.String())
l.Debugw("create release tag", "release", "v"+version.String())

if err := g.CreateRelease(next.String()); err != nil {
return err
Expand Down

0 comments on commit e185c32

Please sign in to comment.