[BUG] Glob pattern for file without extension still reports no files changed #1647
Closed
2 tasks done
Labels
bug
Something isn't working
Is there an existing issue for this?
Does this issue exist in the latest version?
Describe the bug?
I'm trying to run a Dockerfile Lint workflow, only when applicable files have changed. I've been using the glob pattern
**/Dockerfile*
to match a Dockerfile at any directory level and those with file extensions e.g.Dockerfile.dev
.The changed-files action reports two sample Dockerfile's I'm using for testing, one already existed and was modified, the other was added. The debug output confirms that the action picks these up but for some reason the any_changed output is still false when it should be true.
To Reproduce
The following is the config I'm using. Note that it follows the GitHub glob pattern format which this action states it supports so I left this as is. Perhaps the glob pattern is incorrect.
With a Dockerfile at the root and in a nested directory with other unrelated changes (e.g. YAML file), the output of
any_changed
is false when it should be true.What OS are you seeing the problem on?
ubuntu-latest or ubuntu-22.04
Expected behavior?
The value of any_changed should be true.
Relevant log output
As a security precaution, I don't want to share more than necessary but this should show the action is identifying the files changed by the any_changed is false.
This bug #829 is possibly related since it mentions that the only "other_changed" is listing matching files and I'm seeing the same behavior in the log output here.
The text was updated successfully, but these errors were encountered: