release: Fix read tag

This commit is contained in:
世界 2025-03-27 20:30:57 +08:00
parent a530e424e9
commit 2e4a6de4e7
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

View file

@ -27,11 +27,8 @@ func main() {
)
if flagRunNightly {
var version badversion.Version
version, err = build_shared.ReadTagVersionRev()
version, err = build_shared.ReadTagVersion()
if err == nil {
if version.PreReleaseIdentifier == "" {
version.Patch++
}
versionStr = version.String()
}
} else {