release: Fix check prerelease

This commit is contained in:
世界
2024-12-12 14:46:03 +08:00
parent dd9de694f8
commit 483d9fa503
3 changed files with 9 additions and 38 deletions

View File

@@ -36,11 +36,3 @@ func ReadTagVersion() (badversion.Version, error) {
}
return version, nil
}
func IsDevBranch() bool {
branch, err := shell.Exec("git", "branch", "--show-current").ReadOutput()
if err != nil {
return false
}
return branch == "dev-next"
}