I have a GitHub workflow that is triggered when files according to the
pattern **/abc** are modified / created.
As far as I understand it, this means that whenever a:
- File that is in some subfolder of a folder that starts with
abcor - Any file that starts with
abc
is modified, the GH action should be triggered.
However, the workflow is even triggered when I e.g. create a file repository/aaa/test_abc
However, to my understanding, the file repository/aaa/test_abc does not correspond to the pattern **/abc**
Do I
- Misunderstand GH actions syntax or is it
- A Bug in GH actions?
'**/abc**'like explained on the filter pattern cheat sheet?/is a special character in regex, the syntax might be different. If it was a regex pattern you would have to add a \ before the / to do something like this:\/abc. However, I'm not sure it will work here as the syntax used with**on GHA seems a bit different. I will make some tests./is not any special regex metacharacter. It is often escaped in regex literal notation only because it is used as a regex delimiter char. If regex literal notation is not used, no need to escape/.**/abc**is not a regex pattern. No regex should start with a quantifier. This is a glob pattern.