fix: release workflow show version

This commit is contained in:
Seefs
2025-11-22 20:06:13 +08:00
parent 4dbbf06adc
commit de4b52d320
2 changed files with 20 additions and 9 deletions
+5
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)