build: allow building nightly archives via cron jobs (#26938)

pull/26955/head
Péter Szilágyi 2 years ago committed by GitHub
parent 7ecb578564
commit 2ed8013f08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      build/ci.go

@ -465,10 +465,6 @@ func maybeSkipArchive(env build.Environment) {
log.Printf("skipping archive creation because this is a PR build")
os.Exit(0)
}
if env.IsCronJob {
log.Printf("skipping archive creation because this is a cron job")
os.Exit(0)
}
if env.Branch != "master" && !strings.HasPrefix(env.Tag, "v1.") {
log.Printf("skipping archive creation because branch %q, tag %q is not on the inclusion list", env.Branch, env.Tag)
os.Exit(0)

Loading…
Cancel
Save