fix: let us know if not pushing changes without dry-run (recipe release)
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
6cdba0f9de
commit
88f9796aaf
|
@ -295,13 +295,10 @@ func pushRelease(recipe recipe.Recipe, tagString string) error {
|
||||||
if err := recipe.Push(internal.Dry); err != nil {
|
if err := recipe.Push(internal.Dry); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if !internal.Dry {
|
|
||||||
url := fmt.Sprintf("%s/%s/src/tag/%s", config.REPOS_BASE_URL, recipe.Name, tagString)
|
url := fmt.Sprintf("%s/%s/src/tag/%s", config.REPOS_BASE_URL, recipe.Name, tagString)
|
||||||
logrus.Infof("new release published: %s", url)
|
logrus.Infof("new release published: %s", url)
|
||||||
} else {
|
} else {
|
||||||
logrus.Info("dry run: no changes published")
|
logrus.Info("no -p/--publish passed, not publishing")
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in New Issue