aboutsummaryrefslogtreecommitdiff
path: root/build.go
diff options
context:
space:
mode:
authorJakob Borg <jakob@kastelo.net>2023-05-01 09:30:16 +0200
committerJakob Borg <jakob@kastelo.net>2023-05-01 09:42:44 +0200
commit7226b8456b2b8d5749df40a169effcb5b7f8af71 (patch)
treed29f7486349047cd3add31673d35cd8112befc46 /build.go
parentdae5eab78789d29f6054d18357c51092bc000042 (diff)
downloadsyncthing-7226b8456b2b8d5749df40a169effcb5b7f8af71.tar.gz
syncthing-7226b8456b2b8d5749df40a169effcb5b7f8af71.zip
build: Produce nightly release builds
Diffstat (limited to 'build.go')
-rw-r--r--build.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/build.go b/build.go
index a96eb91ef..cca95f989 100644
--- a/build.go
+++ b/build.go
@@ -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) {