Skip to content

Commit 501ff12

Browse files
committed
Use NUL character as separator
1 parent d1852af commit 501ff12

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/qhelp-pr-preview.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ jobs:
3131
- name: Determine changed files
3232
id: changes
3333
run: |
34-
(git diff --name-only --diff-filter=ACMRT HEAD~1 HEAD | grep '.qhelp$' | grep -v '.inc.qhelp';
35-
git diff --name-only --diff-filter=ACMRT HEAD~1 HEAD | grep '.inc.qhelp$' | xargs -d '\n' -rn1 basename | xargs -d '\n' -rn1 git grep -l) |
36-
grep '.qhelp$' | grep -v '^-' | sort -u > "${{ runner.temp }}/paths.txt"
34+
(git diff -z --name-only --diff-filter=ACMRT HEAD~1 HEAD | grep -z '.qhelp$' | grep -z -v '.inc.qhelp';
35+
git diff -z --name-only --diff-filter=ACMRT HEAD~1 HEAD | grep -z '.inc.qhelp$' | xargs --null -rn1 basename | xargs --null -rn1 git grep -z -l) |
36+
grep -z '.qhelp$' | grep -z -v '^-' | sort -z -u > "${{ runner.temp }}/paths.txt"
3737
3838
- name: QHelp preview
3939
run: |
4040
EXIT_CODE=0
4141
echo "QHelp previews:" > comment.txt
42-
while read path; do
42+
while read -r -d $'\0' path; do
4343
if [ ! -f "${path}" ]; then
4444
exit 1
4545
fi

0 commit comments

Comments
 (0)