-
-
Notifications
You must be signed in to change notification settings - Fork 230
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] Specfic File Bug in v33 / v34 - grep: : No such file or directory #795
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. |
@TurtIeSocks can you please provide the full log output using the download button as this output is missing a number of valuable information. |
+1 |
Same here. |
files: |
dev/** Works. files: |
dev/**.tf Does not work. |
@staticaland See: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#patterns-to-match-file-paths I believe |
Same problem here with files: tests/**.js As a workaround I used version v32 |
Have you tried using |
Reading the docs, I don't really see how
|
@staticaland @dlopeza After reaching out to the support team I discovered that there are differences in Implementation of the native workflow globstar matching and the https://github.com/isaacs/minimatch library used by this action an example of such differences can be seen below
Again I’ll suggest you use |
I see same issue when using |
I am having the same issue when specifying two absolute paths. - name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v34
with:
files: |
requirements.txt
docker/Dockerfile.wheels This does not work either - name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v34
with:
files: |
**/requirements.txt
**/docker/Dockerfile.wheels Edit: Downgrading to v32 is working |
@jackton1 I encountered the same problem.
I guess this occurs when changed-files/get-changed-paths.sh Line 189 in ba5abef
$ grep -x -E -f ""
grep: : No such file or directory How about adding an empty check in Lines 208 to 209 in ba5abef
Thank you. |
@kenji-miyake Looking at your workflow file I believe the issue is using a custom container. clang-tidy-differential:
runs-on: ubuntu-latest
container: ros:humble It looks like the temp file that should be created here wasn't created which seems like a different issue. I can add a check to verify the existence of the file and mark the step as failed when missing. |
The files that are in my pattern do exist so it seems to be something else going on as well |
@roflcoopter without the logs there’s no way to find a resolution in this case. |
@jackton1 Thank you for your quick reply! I guess using a custom container is okay. For example, in the workflow run below, Though the image name is different, the workflow structure is almost the same. clang-tidy-differential:
runs-on: ubuntu-latest
container: ghcr.io/autowarefoundation/autoware-universe:humble-latest-cuda What do you think?
Oh, will you mark it as failed? I personally think it's okay to mark it as success when there is no target file found. |
Is there an existing issue for this?
Does this issue exist in the latest version?
Describe the bug?
With the workflow below, I'm able to successfully run it on V32 and below of this action, but V33 and V34 are failing when I have a single file in the files to check list.
To Reproduce
What OS are you seeing the problem on?
ubuntu-latest or ubuntu-20.04
Expected behavior?
I'm expecting it to not fail and report if the single file has changed.
Relevant log output
Anything else?
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: