fix: commit changes if dry-run not present (recipe release)

This commit is contained in:
decentral1se 2022-01-18 10:54:21 +01:00
parent 199aa5f4e3
commit 6cdba0f9de
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
1 changed files with 4 additions and 6 deletions

View File

@ -239,12 +239,10 @@ func commitRelease(recipe recipe.Recipe, tag string) error {
}
}
if internal.Publish {
msg := fmt.Sprintf("chore: publish %s release", tag)
repoPath := path.Join(config.RECIPES_DIR, recipe.Name)
if err := gitPkg.Commit(repoPath, "compose.**yml", msg, internal.Dry); err != nil {
return err
}
msg := fmt.Sprintf("chore: publish %s release", tag)
repoPath := path.Join(config.RECIPES_DIR, recipe.Name)
if err := gitPkg.Commit(repoPath, ".", msg, internal.Dry); err != nil {
return err
}
return nil