Reputation: 939
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:
abc
orabc
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
Upvotes: 2
Views: 1389
Reputation: 22890
You need to escape the /
with a \
for the pattern to work.
Using '**\/abc**'
will resolve the problem.
Most of the time, the filter pattern cheat sheet for the Github Documentation helps to configure the paths, but in that specific case it wasn't detailed.
Upvotes: 5