fix: release workflow show version

This commit is contained in:
Seefs committed 2025-11-22 20:06:13 +08:00
1 parent 4dbbf06adc
commit de4b52d320
2 files changed
+20 -9

No files matched your search

+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)