From 88f9796aafdf1ceeb894c5df9ba2025efde20fff Mon Sep 17 00:00:00 2001 From: cellarspoon Date: Tue, 18 Jan 2022 10:55:07 +0100 Subject: [PATCH] fix: let us know if not pushing changes without dry-run (recipe release) --- cli/recipe/release.go | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/cli/recipe/release.go b/cli/recipe/release.go index af1cf037..33610b17 100644 --- a/cli/recipe/release.go +++ b/cli/recipe/release.go @@ -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