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

This commit is contained in:
Péter Szilágyi 2023-03-21 11:52:29 +02:00 committed by GitHub
parent 7ecb578564
commit 2ed8013f08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)