fix: let us know if not pushing changes without dry-run (recipe release)
continuous-integration/drone/push Build is passing Details

This commit is contained in:
decentral1se 2022-01-18 10:55:07 +01:00
parent 6cdba0f9de
commit 88f9796aaf
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
1 changed files with 4 additions and 7 deletions

View File

@ -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