fix(releaseprep): green unchanged-version prepare
This commit is contained in:
@@ -161,7 +161,7 @@ func updateVersionFile(rootDir, version string, options resolvedOptions) error {
|
|||||||
replacement := strings.Replace(match[0], match[1], version, 1)
|
replacement := strings.Replace(match[0], match[1], version, 1)
|
||||||
updated := strings.Replace(string(contents), match[0], replacement, 1)
|
updated := strings.Replace(string(contents), match[0], replacement, 1)
|
||||||
if updated == string(contents) {
|
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 {
|
if err := os.WriteFile(path, []byte(updated), 0o644); err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user