update-version: always quote the version number in YAML

Without quotes, YAML would see `3.0-beta1` as string, but `3.0` as float.
This commit is contained in:
Sybren A. Stüvel 2022-09-12 15:54:59 +02:00
parent 11785ca51c
commit 7d2970bbe3

@ -17,7 +17,7 @@ func updateWebsite() bool {
if !strings.HasPrefix(line, "latestVersion: ") {
return line
}
return fmt.Sprintf("latestVersion: %s", cliArgs.newVersion)
return fmt.Sprintf("latestVersion: %q", cliArgs.newVersion)
}
fileWasChanged, err := updateLines(websiteFile, replacer)