fix: more fixed for dry mode, this time tested :)

Follows 299276c383.
This commit is contained in:
2021-12-31 13:36:46 +01:00
parent 299276c383
commit ce96269be0
3 changed files with 13 additions and 5 deletions

View File

@ -202,7 +202,9 @@ keys configured on your account.
}
if isClean {
logrus.Fatalf("no changes discovered in %s, nothing to publish?", cataloguePath)
if !internal.Dry {
logrus.Fatalf("no changes discovered in %s, nothing to publish?", cataloguePath)
}
}
msg := "chore: publish new catalogue release changes"
@ -235,10 +237,12 @@ keys configured on your account.
logrus.Fatal(err)
}
if !internal.Dry {
if !internal.Dry && internal.Publish {
url := fmt.Sprintf("%s/recipes/commits/%s", config.REPOS_BASE_URL, head.Hash())
logrus.Infof("new changes published: %s", url)
} else {
}
if internal.Dry {
logrus.Info("dry run: no changes published")
}