fix: handle no changes edge case for recipe release
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
cellarspoon 2021-12-31 13:45:01 +01:00
parent ce96269be0
commit 5254af0fe4
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410

View File

@ -372,6 +372,10 @@ func createReleaseFromPreviousTag(tagString, mainAppVersion string, recipe recip
tagString = newTag.String() 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 { if !internal.NoInput {
prompt := &survey.Confirm{ prompt := &survey.Confirm{
Message: fmt.Sprintf("current: %s, new: %s, correct?", lastGitTag, tagString), Message: fmt.Sprintf("current: %s, new: %s, correct?", lastGitTag, tagString),