Merge pull request #2278 from seefs001/fix/release-version

fix: release workflow show version
This commit is contained in:
Calcium-Ion
2025-11-23 23:51:32 +08:00
committed by GitHub
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)