-
-
Notifications
You must be signed in to change notification settings - Fork 202
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
[BUG] Negating filter doesn't work #335
Comments
Thanks for reporting this issue. |
Hi @AdrianGarcia-StayWithReside can you confirm that this is the same issues using ? Exact extension match!backend/**/migrations/*.py OR (n+1 depth) extension match!backend/**/migrations/**.py |
Same result, files in backend/**/migrations/ are included in the changed file list. |
@AdrianGarcia-StayWithReside Can you include the full log output for the changed files action to assist with debugging. Thanks |
Sanitized logs from this step in the action:
|
@AdrianGarcia-StayWithReside Seems the problem is the usage of single quotes Change: |
This also yields the same result, files from the migration folder are present in the changed file list. I was following the GitHub documentation for matching:
Which doesn't seem to actually matter, it works the same with and without the
|
@AdrianGarcia-StayWithReside this should be resolved in the latest 14.2 release. |
Cool, thanks. |
So I typed up this really long follow-up about it still not working and the steps I've tried to fix it, but it turns out that changing |
Yep also found that Glad you found a fix. |
Is there an existing issue for this?
Does this issue exist in the latest version?
Describe the bug?
Using a negation filter after another filter doesn't remove files from the modified file lists as expected. Instead, all .py files are included.
To Reproduce
The output of this action should include all python files that are not in the migrations folder.
Except it outputs files in the migrations folder:
What OS are you seeing the problem on?
ubuntu-latest or ubuntu-20.04
Expected behavior?
Files that match the
!backend/**/migrations/*
will be removed from the file list as defined in the Github workflow syntax:So the following file list is expected:
Relevant log output
No response
Anything else?
I might just be an idiot and my patterns don't work. More details can be provided if needed.
Code of Conduct
The text was updated successfully, but these errors were encountered: