mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 18:15:45 +00:00
releaser: Fix version replacement
This commit is contained in:
1 file changed
+1
-1
@@ -231,7 +231,7 @@ func (r *ReleaseHandler) bumpVersions(ver hugo.Version) error {
|
||||
}
|
||||
|
||||
if err := r.replaceInFile("common/hugo/version_current.go",
|
||||
`Minor:(\s*)(\d*),`, fmt.Sprintf(`Number:${1}%d,`, ver.Minor),
|
||||
`Minor:(\s*)(\d*),`, fmt.Sprintf(`Minor:${1}%d,`, ver.Minor),
|
||||
`PatchLevel:(\s*)(\d*),`, fmt.Sprintf(`PatchLevel:${1}%d,`, ver.PatchLevel),
|
||||
`Suffix:(\s*)".*",`, fmt.Sprintf(`Suffix:${1}"%s",`, toDev)); err != nil {
|
||||
return err
|
||||
|
||||
Reference in new issue
Block a user