Skip to content

Commit 8ed72a8

Browse files
committed
build: simplify unstable build check
ci.go decides whether a build is unstable by looking at the branch and tag. This causes issues when a GitHub release is created on the master branch because the build is considered unstable (the CI environment reports the branch as "master"). Fix this by looking at the tag only. Any tagged build is stable.
1 parent 04edbb0 commit 8ed72a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/ci.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ func makeWorkdir(wdflag string) string {
459459
}
460460

461461
func isUnstableBuild(env build.Environment) bool {
462-
if env.Branch != "master" && env.Tag != "" {
462+
if env.Tag != "" {
463463
return false
464464
}
465465
return true

0 commit comments

Comments
 (0)