-
-
Notifications
You must be signed in to change notification settings - Fork 176
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] Providing files_ignore without using files input doesn't exclude ignored files #429
Comments
Thanks for reporting this issue, don't forget to star this project to help us reach a wider audience. |
@rwbennett Interesting can you include the full log output generated by |
@jackton1 , here's a newer on in which I've tried the same thing using v18:
|
@rwbennett Since you only want to detect changes to all ...
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v18
with:
separator: '" , "'
files: |
**/*.json From the logs, it seems that None of the patterns are returning any matches i.e |
Thanks @jackton1! Using the above does solve my problem. Out of curiosity though, I tried this as well:
Using files_ignore by itself should have the same effect as what you posted, I believe. However, it still shows the .yml files in .github/workflows. I also tried adding another .yml file under a non-hidden directory "dev/test.yml", and that file is also included in the result set with the above. Could this be a bug in the files_ignore input? |
Yes, it appears this is a bug based on the fact that the |
@rwbennett This should be resolved now |
Is there an existing issue for this?
Does this issue exist in the latest version?
Describe the bug?
Based on the documentation, using either files or files_ignore should allow users to limit which files are returned in the result set. However, using either or both, I still get files I'm explicitly trying to ignore when accessing
all_changed_files
.To Reproduce
The log still shows .yml files being shown:
What OS are you seeing the problem on?
ubuntu-latest or ubuntu-20.04
Expected behavior?
The output should only have included .json files and not .yml files.
Relevant log output
No response
Anything else?
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: