Stale artefact check now considers directory last modification time as well
Publish PHP Package / docker (push) Successful in 6s Details

This commit is contained in:
Pavel Shevaev 2025-05-19 19:16:44 +03:00
parent cfa26d1497
commit 795c612168
1 changed files with 3 additions and 3 deletions

View File

@ -379,12 +379,12 @@ class TaskmanDirFiles implements \ArrayAccess, \Countable, \Iterator
} }
} }
function is_stale(string $file, iterable $deps) : bool function is_stale(string $path, iterable $deps) : bool
{ {
if(!is_file($file)) if(!is_file($path) && !is_dir($path))
return true; return true;
$fmtime = filemtime($file); $fmtime = filemtime($path);
foreach($deps as $dep) foreach($deps as $dep)
{ {