mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
releaser: Fix version replacement
This commit is contained in:
parent
2f9eac480f
commit
ee55fde5e5
1 changed files with 1 additions and 1 deletions
|
@ -231,7 +231,7 @@ func (r *ReleaseHandler) bumpVersions(ver hugo.Version) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := r.replaceInFile("common/hugo/version_current.go",
|
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),
|
`PatchLevel:(\s*)(\d*),`, fmt.Sprintf(`PatchLevel:${1}%d,`, ver.PatchLevel),
|
||||||
`Suffix:(\s*)".*",`, fmt.Sprintf(`Suffix:${1}"%s",`, toDev)); err != nil {
|
`Suffix:(\s*)".*",`, fmt.Sprintf(`Suffix:${1}"%s",`, toDev)); err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in a new issue