Skip to content

Commit

Permalink
[skip ci] Run all branches in nightly on Monday (GH-16625)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
iluuu1994 authored Oct 28, 2024
1 parent fc1582d commit 562677a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/nightly_matrix.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,10 @@ function get_current_version(): array {

$trigger = $argv[1] ?? 'schedule';
$attempt = (int) ($argv[2] ?? 1);
$discard_cache = ($trigger === 'schedule' && $attempt !== 1) || $trigger === 'workflow_dispatch';
$monday = date('w', time()) === '1';
$discard_cache = $monday
|| ($trigger === 'schedule' && $attempt !== 1)
|| $trigger === 'workflow_dispatch';
if ($discard_cache) {
@unlink(get_branch_commit_cache_file_path());
}
Expand Down

0 comments on commit 562677a

Please sign in to comment.