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:
parent
11785ca51c
commit
7d2970bbe3
@ -17,7 +17,7 @@ func updateWebsite() bool {
|
|||||||
if !strings.HasPrefix(line, "latestVersion: ") {
|
if !strings.HasPrefix(line, "latestVersion: ") {
|
||||||
return line
|
return line
|
||||||
}
|
}
|
||||||
return fmt.Sprintf("latestVersion: %s", cliArgs.newVersion)
|
return fmt.Sprintf("latestVersion: %q", cliArgs.newVersion)
|
||||||
}
|
}
|
||||||
|
|
||||||
fileWasChanged, err := updateLines(websiteFile, replacer)
|
fileWasChanged, err := updateLines(websiteFile, replacer)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user