From 971a7744bfdb7ad83a693cf7c57565c120752ec5 Mon Sep 17 00:00:00 2001 From: Micheal Wilkinson Date: Fri, 20 Mar 2026 18:52:34 +0000 Subject: [PATCH] fix(releaseprep): green unchanged-version prepare --- internal/releaseprep/releaseprep.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/releaseprep/releaseprep.go b/internal/releaseprep/releaseprep.go index 5dc8a4f..a598eab 100644 --- a/internal/releaseprep/releaseprep.go +++ b/internal/releaseprep/releaseprep.go @@ -161,7 +161,7 @@ func updateVersionFile(rootDir, version string, options resolvedOptions) error { replacement := strings.Replace(match[0], match[1], version, 1) updated := strings.Replace(string(contents), match[0], replacement, 1) if updated == string(contents) { - return fmt.Errorf("version value not found in %s", path) + return nil } if err := os.WriteFile(path, []byte(updated), 0o644); err != nil {