Skip to content

Commit 98dfa32

Browse files
committed
Run all branches in nightly on Monday
See GH-16286. The objective is to identify failed builds in security branches semi-early. Previously, they would only be run when a fix was backported, which would almost always result in a red build.
1 parent 0b4aed0 commit 98dfa32

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/nightly_matrix.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,10 @@ function get_current_version(): array {
154154

155155
$trigger = $argv[1] ?? 'schedule';
156156
$attempt = (int) ($argv[2] ?? 1);
157-
$discard_cache = ($trigger === 'schedule' && $attempt !== 1) || $trigger === 'workflow_dispatch';
157+
$monday = date('w', time()) === '1';
158+
$discard_cache = $monday
159+
|| ($trigger === 'schedule' && $attempt !== 1)
160+
|| $trigger === 'workflow_dispatch';
158161
if ($discard_cache) {
159162
@unlink(get_branch_commit_cache_file_path());
160163
}

0 commit comments

Comments
 (0)