fix: stop if no tags in place

This commit is contained in:
decentral1se 2021-12-21 02:08:51 +01:00
parent 0dc4b2beef
commit c1a00520dc
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
1 changed files with 4 additions and 0 deletions

View File

@ -242,6 +242,10 @@ You may invoke this command in "wizard" mode and be prompted for input:
logrus.Fatal(err)
}
if lastGitTag.String() == "" || lastGitTag.String() == ".." {
logrus.Fatal("no git tags found, please specify <version>")
}
newTag := lastGitTag
var newtagString string
if bumpType > 0 {