Skip to content

Commit

Permalink
fix: overwrite tag correctly for initial release
Browse files Browse the repository at this point in the history
Closes: #5
  • Loading branch information
zbindenren committed Jun 30, 2021
1 parent 1a3be0a commit 1cbb1f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ func (c Command) runInit(dst io.Writer, l *flash.Logger, cfg config.Changelog, g

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 {
if err := g.CreateRelease(version.String()); err != nil {
return err
}

Expand Down

0 comments on commit 1cbb1f2

Please sign in to comment.