From 6cdba0f9de7d7c0d763b7f9e6fe1327521c7d7e2 Mon Sep 17 00:00:00 2001 From: cellarspoon Date: Tue, 18 Jan 2022 10:54:21 +0100 Subject: [PATCH] fix: commit changes if dry-run not present (recipe release) --- cli/recipe/release.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/cli/recipe/release.go b/cli/recipe/release.go index 20a47fbe..af1cf037 100644 --- a/cli/recipe/release.go +++ b/cli/recipe/release.go @@ -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