Просмотр исходного кода

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.
Felix Lange 9 лет назад
Родитель
Сommit
8ed72a8470
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      build/ci.go

+ 1 - 1
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