-
Notifications
You must be signed in to change notification settings - Fork 790
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 files/dirs either by name or regexp #44
Comments
Or filter like:
So only |
Why not just accept your regular wildcards for paths: one should be able to list multiple wildcards, all files matching them will be included. When the wildcard is negative (starting from !), files matching it will be excluded. |
@solodon4, I included your proposal to use |
Thank you @eine ! My point was also to have it as unified as possible with other places you guys use path patterns, e.g. path triggers where you can have an array of path patterns, both positive and negative. This will ensure the cognitive burden of learning where what is accepted will be minimized. |
I agree, this would be nice. |
+1 |
Being able to include and exclude certain files using and It's also very useful to search for files like with a certain name, especially if you don't know exactly in which directory they ended up in. Here's an example of wildcard use in Netflix: https://github.com/Netflix/vmaf/blob/master/appveyor.yml#L59 |
With the The To fully take advantage of this though, we will have to wait until support for multiple paths gets added since even with the Afterwards it should be possible to do something like this (not 100% sure about the final YAML syntax for multiple paths) :
|
Hi @konradpabjan ! I'm not sure how the final YAML syntax has been so far for multiple glob patterns in
Note that, the glob module does support multiple glob patterns by join-ing patterns with Also, some links to my test if anyone needs an idea: my testing workflow file, testing commit, and runner result. Comment updated on July 10th:Thank @konradpabjan again for creating the PR#94 13 hours ago, and he has already merged it 5 hours ago. Congrats! Now as he suggests in a new version of README. Use Thank you so much for the fix, PR, and documenting in README! |
It would be nice to have a way to exclude some files/directories from uploading. I would think about something like this:
So only hello.txt will be archived/uploaded.
Might be ANT syntax is good.
The text was updated successfully, but these errors were encountered: