You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My case is a visual diff tool that generates snapshot images in a workflow for new tests. It generates files with names like ComponentName test category test name #number.png.
I tried a regexp to match \.png, but the action didn't pick up the new image.
I've tracked it down to the interplay between git status --porcelain and awk.
To Reproduce
Make a new Git repo
Create a file containing spaces in its name (touch "foo bar.txt")
Run parts of the command from entrypoint.sh (git status --porcelain | awk '{ print $2 }'
Notice how the file name is missing its second part and file extension
What OS are you seeing the problem on?
ubuntu-latest or ubuntu-20.04, macos-latest or macos-10.15
Expected behavior?
The awk command should pass the whole file name including extension to grep.
Is there an existing issue for this?
Does this issue exist in the latest version?
Describe the bug?
My case is a visual diff tool that generates snapshot images in a workflow for new tests. It generates files with names like
ComponentName test category test name #number.png
.I tried a regexp to match
\.png
, but the action didn't pick up the new image.I've tracked it down to the interplay between
git status --porcelain
andawk
.To Reproduce
touch "foo bar.txt"
)git status --porcelain | awk '{ print $2 }'
What OS are you seeing the problem on?
ubuntu-latest or ubuntu-20.04, macos-latest or macos-10.15
Expected behavior?
The
awk
command should pass the whole file name including extension togrep
.I suggest this change (via Stack Overflow):
If you follow the steps to reproduce, but replace step 3 with
git status --porcelain | awk '{$1=""; print $0 }'
you should see the whole file name.Relevant log output
Anything else?
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: