forked from toolshed/abra
		
	fix: let us know if not pushing changes without dry-run (recipe release)
This commit is contained in:
		| @ -295,13 +295,10 @@ func pushRelease(recipe recipe.Recipe, tagString string) error { | ||||
| 		if err := recipe.Push(internal.Dry); err != nil { | ||||
| 			return err | ||||
| 		} | ||||
|  | ||||
| 		if !internal.Dry { | ||||
| 			url := fmt.Sprintf("%s/%s/src/tag/%s", config.REPOS_BASE_URL, recipe.Name, tagString) | ||||
| 			logrus.Infof("new release published: %s", url) | ||||
| 		} else { | ||||
| 			logrus.Info("dry run: no changes published") | ||||
| 		} | ||||
| 		url := fmt.Sprintf("%s/%s/src/tag/%s", config.REPOS_BASE_URL, recipe.Name, tagString) | ||||
| 		logrus.Infof("new release published: %s", url) | ||||
| 	} else { | ||||
| 		logrus.Info("no -p/--publish passed, not publishing") | ||||
| 	} | ||||
|  | ||||
| 	return nil | ||||
|  | ||||
		Reference in New Issue
	
	Block a user