mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
[skip ci] Run all branches in nightly on Monday (GH-16625)
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.
This commit is contained in:
5
.github/nightly_matrix.php
vendored
5
.github/nightly_matrix.php
vendored
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user