mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
fix path trigger
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user