-
-
Notifications
You must be signed in to change notification settings - Fork 180
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] files_ignore
isn't respected
#1434
Comments
Thanks for reporting this issue, don't forget to star this project if you haven't already to help us reach a wider audience. |
Hi @CITIZENDOT Can you provide the logs associated to your workflow.
|
How to enable debugging? |
Here's the log. Didn't include
|
- name: Get all script files that have changed
id: changed-files
uses: tj-actions/changed-files@v37
with:
files: |
assets/scripts/**.sh
.github/test-microk8s-ubuntu.yml
files_ignore: |
assets/scripts/configure-minikube-linux.sh |
Sure. Thanks a lot for the quick response! |
btw, multiline |
@CITIZENDOT Actually, this is working as expected Workflow file - name: Get all script files that have changed
id: changed-files
uses: tj-actions/changed-files@v37
with:
files: |
assets/scripts/**.sh
.github/test-microk8s-ubuntu.yml
files_ignore: assets/scripts/configure-minikube-linux.sh This means ignoring Here's the logs
Let me know if you need further clarification. |
You can ignore my earlier recommendation since that's the same thing |
In the docs, |
@CITIZENDOT Yes Both files are detected as being changed
You explicitly ignored For context here's the workflow file - name: Get all script files that have changed
id: changed-files
uses: tj-actions/changed-files@v37
with:
files: |
assets/scripts/**.sh -- This includes both assets/scripts/configure-minikube-linux.sh and assets/scripts/configure-microk8s-linux.sh but assets/scripts/configure-minikube-linux.sh is explicitly ignored and not assets/scripts/configure-microk8s-linux.sh
.github/test-microk8s-ubuntu.yml
files_ignore: assets/scripts/configure-minikube-linux.sh I'm not sure what your expected outcome is but if any file that isn't ignored has changed then |
I'm still confused here. |
@CITIZENDOT You changed both files here ![]() Both files are detected as being changed
You explicitly ignored |
Ohhh, this checks for the whole PR? I was thinking this checks for commit and its preceeding commit. |
For checking the commit you might want to use - name: Get all script files that have changed
id: changed-files
uses: tj-actions/changed-files@v37
with:
since_last_remote_commit: true
... |
Thank you. Also Apologies for incorrectly filing this as a bug. |
No worries, was a fun debugging session. |
One small doubt, when a PR is created to dev branch from a feature branch: setting |
Yes, you are spot on |
Is there an existing issue for this?
Does this issue exist in the latest version?
Describe the bug?
I specified
files
andfiles_ignore
as below.And the files changed are
[assets/scripts/configure-minikube-linux.sh]
. Butsteps.changed-files.outputs.any_modified == 'true'
is evaluated astrue
.To Reproduce
ubuntu-latest
What OS are you seeing the problem on?
ubuntu-latest or ubuntu-20.04
Expected behavior?
steps.changed-files.outputs.any_modified
should be set to false, when only files changed belong tofiles_ignore
.Relevant log output
No response
Anything else?
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: