fix: handle dry run output result correctly

This commit is contained in:
2021-12-31 13:17:50 +01:00
parent 866cdd1f29
commit 299276c383
2 changed files with 8 additions and 6 deletions

View File

@ -292,10 +292,12 @@ func pushRelease(recipe recipe.Recipe, tagString string) error {
if err := recipe.Push(internal.Dry); err != nil {
return err
}
}
url := fmt.Sprintf("%s/%s/tags/%s", config.REPOS_BASE_URL, recipe.Name, tagString)
logrus.Infof("new release published: %s", url)
if !internal.Dry {
url := fmt.Sprintf("%s/%s/tags/%s", config.REPOS_BASE_URL, recipe.Name, tagString)
logrus.Infof("new release published: %s", url)
}
}
return nil
}