forked from toolshed/abra
		
	fix: add prompt before publishing
This commit is contained in:
		| @ -378,6 +378,21 @@ func createReleaseFromPreviousTag(tagString, mainAppVersion string, recipe recip | |||||||
| 	newTag.Metadata = mainAppVersion | 	newTag.Metadata = mainAppVersion | ||||||
| 	newTagString := newTag.String() | 	newTagString := newTag.String() | ||||||
|  |  | ||||||
|  | 	if !internal.NoInput { | ||||||
|  | 		prompt := &survey.Confirm{ | ||||||
|  | 			Message: fmt.Sprintf("current: %s, new: %s, correct?", lastGitTag, newTagString), | ||||||
|  | 		} | ||||||
|  |  | ||||||
|  | 		var ok bool | ||||||
|  | 		if err := survey.AskOne(prompt, &ok); err != nil { | ||||||
|  | 			logrus.Fatal(err) | ||||||
|  | 		} | ||||||
|  |  | ||||||
|  | 		if !ok { | ||||||
|  | 			logrus.Fatal("exiting as requested") | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  |  | ||||||
| 	if err := commitRelease(recipe, newTagString); err != nil { | 	if err := commitRelease(recipe, newTagString); err != nil { | ||||||
| 		logrus.Fatal(err) | 		logrus.Fatal(err) | ||||||
| 	} | 	} | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user