Skip to content

Commit 3273ebe

Browse files
authored
.github: Bust the nightly CI cache on Sunday instead of Monday (php#20242)
The nightly matrix with an empty cache takes several hours to complete due to the amount of jobs. This will effectively block the entire CI for the php organization since there is an organization-wide limit of 20 jobs. Move the cache buster job to Sunday to make it less likely for folks to fight with the Nightly build for resources.
1 parent d62f70c commit 3273ebe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/nightly_matrix.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ function get_current_version(): array {
4949

5050
$trigger = $argv[1] ?? 'schedule';
5151
$attempt = (int) ($argv[2] ?? 1);
52-
$monday = date('w', time()) === '1';
53-
$discard_cache = $monday
52+
$sunday = date('w', time()) === '0';
53+
$discard_cache = $sunday
5454
|| ($trigger === 'schedule' && $attempt !== 1)
5555
|| $trigger === 'workflow_dispatch';
5656
if ($discard_cache) {

0 commit comments

Comments
 (0)