From 18aad4cc52853dbb9eccbc04034bdcf577220724 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Mon, 20 Oct 2025 11:25:20 +0200 Subject: [PATCH] .github: Bust the nightly CI cache on Sunday instead of Monday 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. --- .github/nightly_matrix.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/nightly_matrix.php b/.github/nightly_matrix.php index 846c60e8fd56d..c1f5627542684 100644 --- a/.github/nightly_matrix.php +++ b/.github/nightly_matrix.php @@ -49,8 +49,8 @@ function get_current_version(): array { $trigger = $argv[1] ?? 'schedule'; $attempt = (int) ($argv[2] ?? 1); -$monday = date('w', time()) === '1'; -$discard_cache = $monday +$sunday = date('w', time()) === '0'; +$discard_cache = $sunday || ($trigger === 'schedule' && $attempt !== 1) || $trigger === 'workflow_dispatch'; if ($discard_cache) {