-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exclude not working for me #41
Comments
+1 |
1 similar comment
+1 |
Hi ! Internally, the exclusion pattern matching is done against a string path. However, it seems that the this string path does not include a leading slash. So currently, to ignore top level files or directories, just don't include a slash at the beginning of the exclude expression. To ignore the However, as it is normal to address a root path with a leading slash, this might be beneficial to implement. This would be a breaking change, so we need to be sure that this is the most intuitive and conventional solution. The actual fix seems to be rather simple. Just change this line: Line 107 in 0d78a5b
to this: [[ "/$f" == $EXCLUDE ]] && continue This would make it possible to exclude the root directory with the pattern Feedback is much appreciated 🙏 |
it wasn't working for me either and I figured it out by experimentation. Even though it is a breaking change, I highly encourage to implement it. |
Is it possible to exclude more than one folder? |
Hello,
For some reason I am not able to get the exclude to work. It is copying the wofklow action itself in to the destination repository. I am sure I am just not doing the globs right. Any help on my config would help:
I even tried exclude: */.github/* but then it tells me that is an invalid token and won't allow me to save the yml file.
The text was updated successfully, but these errors were encountered: