From 0a4f4553d3120c1c3b9ff254b0223bcb4db29d1f Mon Sep 17 00:00:00 2001 From: Vincent Demeester Date: Thu, 19 Oct 2023 19:32:35 +0200 Subject: [PATCH] catalog-cd: fix release README.md copy Signed-off-by: Vincent Demeester --- internal/cmd/release.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cmd/release.go b/internal/cmd/release.go index 560e81c9..fcad4b7c 100644 --- a/internal/cmd/release.go +++ b/internal/cmd/release.go @@ -112,7 +112,7 @@ func (r *ReleaseCmd) Run(_ *config.Config) error { readmeFile := filepath.Join(filepath.Dir(f), "README.md") if _, err := os.Stat(readmeFile); err == nil { // This is the README, copy it to output - if err := copyFile(f, filepath.Join(resourceFolder, "README.md")); err != nil { + if err := copyFile(readmeFile, filepath.Join(resourceFolder, "README.md")); err != nil { return err } continue