Skip to content

Commit

Permalink
when no version tag is specified use the next version without metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
sstarcher committed Apr 4, 2020
1 parent 7e44165 commit e99f5cf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,8 @@ var rootCmd = &cobra.Command{
return err
}
} else {
ver, _ := getter.Get()
if ver.Metadata() == "" {
tag = ver.String()
}
ver, _ := version.SetMetadata("")
tag = ver.String()
}
chart.UpdateChart(version, tag)

Expand Down

0 comments on commit e99f5cf

Please sign in to comment.