fix: default value
All checks were successful
build / build (push) Successful in 1m38s
build / build (pull_request) Successful in 1m41s
build / trigger-build-image (push) Has been skipped
build / trigger-build-image (pull_request) Has been skipped

This commit is contained in:
zzjc1234 2024-10-08 10:52:52 +08:00
parent d211e576ba
commit 8af5aac645
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ var Version string
func main() {
var gitWhitelist, metaFile []string
showVersion := flag.Bool("version", false, "print current version")
checkRelease := flag.Bool("checkRelease", false, "trigger release check")
checkRelease := flag.Bool("checkRelease", true, "trigger release check")
rootDir := flag.String("root", "", "")
repo := flag.String("repo", "", "")
localList := flag.String("localList", "", "")

View File

@ -82,7 +82,7 @@ func CheckTags(repoPath string, skip bool) error {
}
}
if !found {
return fmt.Errorf("Wrong release tag '%s' or missing release tags. Please use one of '%s'.", target, strings.Join(tags, "', '"))
return fmt.Errorf("Wrong release tag in '%s' or missing release tags. Please use '%s'.", strings.Join(tags, "', '"), target)
}
return nil
}