diff --git a/internal/versionbump.go b/internal/versionbump.go index 0a0dc14..b358c25 100644 --- a/internal/versionbump.go +++ b/internal/versionbump.go @@ -379,8 +379,8 @@ func (vb *VersionBump) bumpPreflight() { // log what changes will be made to each file for _, file := range vb.Config.Files { for _, replace := range file.Replace { - find := vbu.ReplaceInString(replace, "{Version}", vb.GetOldVersion()) - replace := vbu.ReplaceInString(replace, "{Version}", vb.GetNewVersion()) + find := vbu.ReplaceInString(replace, "{version}", vb.GetOldVersion()) + replace := vbu.ReplaceInString(replace, "{version}", vb.GetNewVersion()) logVerbose(vb.Options, file.Path) logVerbose(vb.Options, fmt.Sprintf(" Find: \"%s\"", find)) diff --git a/versionbump.yaml b/versionbump.yaml index 832f64a..cc74c41 100644 --- a/versionbump.yaml +++ b/versionbump.yaml @@ -6,7 +6,7 @@ git-sign: true # Whether to sign the git tag. files: # The files to update with the new version. - path: "internal/versionbump.go" # The path to the file to update. replace: - - "const Version = \"{version}\"" # The search string to replace in the file. + - "\"{version}\"" # The search string to replace in the file. - path: "README.md" replace: