GitHub Actions workflow not triggered with path/**

I define a workflow that will run on push to master if anything in sam-highlighter directory changes:

However, it is not triggered on master run in the latest commit, and this is the relevant commit:

This is my repository:


I don’t see the workflow you linked to anymore. Is this still an issue? If so, can you tell me which workflow is the one you’re having a problem with?


Here is a more recent commit:

and workflow files at that point:

Since I made a change in the main-site-frontend folder in master, I would expect this workflow to run based on the path config: but it’s not run.

You expect that pattern to cover arbitrarily-nested directories, right?  I tried it out earlier, and I don’t believe that’s supported right now.

1 Like

Try changing the above to


I have tested using only one asterisk and it gives the same result as two asterisks. Only files directly in the folder will trigger the action but not a file which is nested, for instance: main-site-frontend/another-folder/changed-file.txt will not trigger the action

1 Like

I think that the pattern is using Go Path, which does not seem to have any support for nested directories.

I checked the Go path discussions and it seems to have gone anywhere to being supported. This fundamentally becomes a maintenance issue. I had to use a bunch of ‘path/*’, ‘path/*/*’, etc… pasted over and over again to get the result I wanted. However if someone were to add one more nested folder than my configuration and forgets to change the workflow file, it will not get triggered.

1 Like

@svalluru-aaiis right, Go path.Match does not support matching nested directories.

On GitHub’s docs there is a section on how to support sub-projects by listing as many nested path’s as possible which is a downright hack.

This feature is crutial in supporting monorepos and would be amazing if it worked out of the box for such usecases.

Would it be possible to switch from path.Match to something like regex? This would enable much more versitile rules and the Go standard library already comes with regex in the standard library.

We have a new syntax for branch, tag and path filtering


I’m currently evaluating moving more of our CI/CD workload to GitHub Actions. Our project is a Monorepo with more than 100 nested projects. It would be extremly helpful if I could add 


to match ALL JavaScript files in all subdirectories.

Right now I’m using this instead:


This will trigger when changes happen to any JS file nested 5 levels deep. The workflow file gets very hard to read, though.

Any idea about the timeline when the feature will land?

We are working on an update to the path matching that will support the more standandard globbing patterns.  Please keep an eye on the GitHub changelog for the update.

Here it is!!!

1 Like

Unfortunately, when I type paths-ignore, Github is complaining about it, not working.

Sorry, it is working but auto-suggestion of Github is complaining about the syntax that’s why I though it is not valid. I am so sorry :frowning: