fix: handle no changes edge case for recipe release
continuous-integration/drone/push Build is passing Details

This commit is contained in:
decentral1se 2021-12-31 13:45:01 +01:00
parent ce96269be0
commit 5254af0fe4
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
1 changed files with 4 additions and 0 deletions

View File

@ -372,6 +372,10 @@ func createReleaseFromPreviousTag(tagString, mainAppVersion string, recipe recip
tagString = newTag.String()
}
if lastGitTag.String() == tagString {
logrus.Fatalf("latest git tag (%s) and synced lable (%s) are the same?", lastGitTag, tagString)
}
if !internal.NoInput {
prompt := &survey.Confirm{
Message: fmt.Sprintf("current: %s, new: %s, correct?", lastGitTag, tagString),