fix: release workflow show version

This commit is contained in:
Seefs
2025-11-22 20:06:13 +08:00
parent efb8f1f5b8
commit f47d473e63
2 changed files with 20 additions and 9 deletions

View File

@@ -30,6 +30,11 @@ func printHelp() {
func InitEnv() {
flag.Parse()
envVersion := os.Getenv("VERSION")
if envVersion != "" {
Version = envVersion
}
if *PrintVersion {
fmt.Println(Version)
os.Exit(0)