Stale artefact check now considers directory last modification time as well
Publish PHP Package / docker (push) Successful in 6s
Details
Publish PHP Package / docker (push) Successful in 6s
Details
This commit is contained in:
parent
cfa26d1497
commit
795c612168
|
@ -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;
|
||||
|
||||
$fmtime = filemtime($file);
|
||||
$fmtime = filemtime($path);
|
||||
|
||||
foreach($deps as $dep)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue