Skip to content

Commit 1a140a2

Browse files
Update glob-expression-trigger-not-working.md
Added another example to negate expression
1 parent d04a0bb commit 1a140a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_docs/kb/articles/glob-expression-trigger-not-working.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The glob expression that is set up for a trigger is not working correctly.
2020
**Cause** | **Solution**
2121
---|---
2222
You are using a single expression, but are encasing them in curly brackets `{folderName/**}` | Do not encase them in in curly brackets. Instead use `folderName/**`<br><br>Curly brackets are only used for multiple expressions.
23-
Incorrect syntax for negation expressions | Proper syntax: `!folderName/**` for a single path, `!{folderName/**,folder2Name/**}` for multiple expressions
23+
Incorrect syntax for negation expressions | Proper syntax: `!folderName/**` for a single path, `!{folderName/**,folder2Name/**}` for multiple expressions. To match all files in a directory except for a specific pattern, use syntax `folderName/!(fileToIgnore)**`.
2424
Changed files are in hidden directories | Glob expressions will not match for hidden directories unless the directory pattern explicitly starts with `.`.<br><br>For example, to match for all files in all hidden subdirectories immediately under `folderName`, use `folderName/.*/**`.<br><br>Note that you will need an additional expression if you want to also match normal subdirectories under `folderName`.
2525
List of actual changed files is different than expected | Review the full webhook event payload either in [Codefresh trigger audit logs](https://g.codefresh.io/account-admin/audit/audit-triggers), or in your git provider's webhook event history. The payload will contain the full list of modified files for the specific event, exactly as given by your git provider.
2626
Incorrect glob expression | You can [check your glob expressions with a tool](https://www.digitalocean.com/community/tools/glob) to ensure the syntax matches the correct files.

0 commit comments

Comments
 (0)