forked from toolshed/abra
@ -231,7 +231,9 @@ func commitRelease(recipe recipe.Recipe, tag string) error {
|
||||
}
|
||||
|
||||
if isClean {
|
||||
return fmt.Errorf("no changes discovered in %s, nothing to publish?", recipe.Dir())
|
||||
if !internal.Dry {
|
||||
return fmt.Errorf("no changes discovered in %s, nothing to publish?", recipe.Dir())
|
||||
}
|
||||
}
|
||||
|
||||
if internal.Publish {
|
||||
@ -296,6 +298,8 @@ func pushRelease(recipe recipe.Recipe, tagString string) error {
|
||||
if !internal.Dry {
|
||||
url := fmt.Sprintf("%s/%s/tags/%s", config.REPOS_BASE_URL, recipe.Name, tagString)
|
||||
logrus.Infof("new release published: %s", url)
|
||||
} else {
|
||||
logrus.Info("dry run: no changes published")
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user