From 8ed72a84703382b88fe8372f08a5dbed2e0c47cf Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Fri, 18 Nov 2016 19:55:19 +0100 Subject: [PATCH] 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. --- build/ci.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/ci.go b/build/ci.go index 0e1ed37cab..71609c7275 100644 --- a/build/ci.go +++ b/build/ci.go @@ -459,7 +459,7 @@ func makeWorkdir(wdflag string) string { } func isUnstableBuild(env build.Environment) bool { - if env.Branch != "master" && env.Tag != "" { + if env.Tag != "" { return false } return true