fix path trigger

This commit is contained in:
Hemachandar
2026-04-20 12:02:07 +05:30
committed by harsh mahajan
parent e17cdc2bd4
commit a70d241da0
@@ -576,9 +576,17 @@ trait Deployment
return false;
}
$pathTrigger = new BuildTrigger($resource->getAttribute('providerPaths', []));
foreach ($providerAffectedFiles as $file) {
if (!$pathTrigger->isValid($file)) {
$providerPaths = $resource->getAttribute('providerPaths', []);
if (!empty($providerPaths) && !empty($providerAffectedFiles)) {
$pathTrigger = new BuildTrigger($providerPaths);
$pathMatched = false;
foreach ($providerAffectedFiles as $file) {
if ($pathTrigger->isValid($file)) {
$pathMatched = true;
break;
}
}
if (!$pathMatched) {
Span::add("{$logBase}.build.skipped.reason", 'path');
return false;
}