Skip to content

Commit 7bad2f8

Browse files
committed
Prevent word splitting.
1 parent 1fbed68 commit 7bad2f8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/list-changed-files.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ jobs:
6666
NEW_TAG: ${{ matrix.new_tag }}
6767
OLD_TAG: ${{ matrix.old_tag }}
6868
run: |
69-
DIFF_OUTPUT=$(git diff --name-status $OLD_TAG...$NEW_TAG | grep -E "^($PATTERN)" | cut -c3-)
69+
DIFF_OUTPUT=$(git diff --name-status "$OLD_TAG"..."$NEW_TAG" | grep -E "^($PATTERN)" | cut -c3-)
7070
if [ -n "$DIFF_OUTPUT" ]; then
71-
echo "$DIFF_OUTPUT" >> $GITHUB_STEP_SUMMARY
71+
echo "$DIFF_OUTPUT" >> "$GITHUB_STEP_SUMMARY"
7272
else
73-
echo "No files $DESCRIPTION found" >> $GITHUB_STEP_SUMMARY
73+
echo "No files $DESCRIPTION found" >> "$GITHUB_STEP_SUMMARY"
7474
fi
7575
7676
slack-notifications:

0 commit comments

Comments
 (0)