1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Merge branch 'PHP-8.5'

* PHP-8.5:
  .github: Bust the nightly CI cache on Sunday instead of Monday (#20242)
This commit is contained in:
Tim Düsterhus
2025-10-20 12:43:53 +02:00

View File

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