Change: Use fnmatch for workflow path matching (#5250)

This commit is contained in:
shamoon authored and GitHub committed 2024-01-05 19:15:14 +00:00
1 parent 355a434a07
commit d623af9c41
2 files changed
+51 -1

No files matched your search

+4 -1
View File
@@ -296,7 +296,10 @@ def consumable_document_matches_workflow(
if (
trigger.filter_path is not None
and len(trigger.filter_path) > 0
and not document.original_file.match(trigger.filter_path)
and not fnmatch(
document.original_file,
trigger.filter_path,
)
):
reason = (
f"Document path {document.original_file}"