build: Produce nightly release builds

This commit is contained in:
Jakob Borg
2023-05-01 09:30:16 +02:00
parent dae5eab787
commit 7226b8456b
4 changed files with 72 additions and 7 deletions

View File

@@ -1108,10 +1108,14 @@ func getBranchSuffix() string {
branch = parts[len(parts)-1]
switch branch {
case "master", "release", "main":
case "release", "main":
// these are not special
return ""
}
if strings.HasPrefix(branch, "release-") {
// release branches are not special
return ""
}
validBranchRe := regexp.MustCompile(`^[a-zA-Z0-9_.-]+$`)
if !validBranchRe.MatchString(branch) {