fix: handle dry run output result correctly
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@ -235,11 +235,11 @@ keys configured on your account.
|
||||
logrus.Fatal(err)
|
||||
}
|
||||
|
||||
if internal.Dry {
|
||||
logrus.Info("dry run: no changes published")
|
||||
} else {
|
||||
if !internal.Dry {
|
||||
url := fmt.Sprintf("%s/recipes/commits/%s", config.REPOS_BASE_URL, head.Hash())
|
||||
logrus.Infof("new changes published: %s", url)
|
||||
} else {
|
||||
logrus.Info("dry run: no changes published")
|
||||
}
|
||||
|
||||
return nil
|
||||
|
Reference in New Issue
Block a user