Skip to content

Commit bc9ddb0

Browse files
committed
Fix?
1 parent ff893fd commit bc9ddb0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/preview_comment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ jobs:
3838
elif [[ $number_of__changed_files -gt $file_limit ]] ; then
3939
comment="Preview of modified Markdown files: Too many files modified in a single PR, preview link list is skipped. ($number_of__changed_files files &gth; $file_limit)"
4040
else
41-
comment=$(git diff --name-only HEAD "origin/$GITHUB_BASE_REF" | grep -E "^docs\/.*\.md$" | sed -E "s|^docs/(.*)\.md$|- [docs/\1.md](${build_url}\1\/)|")
41+
comment=$(git diff --name-only HEAD "origin/$GITHUB_BASE_REF" | grep -E "^docs\/.*\.md$" | sed -E "s|^docs/(.*)\.md$|- [docs/\1.md](${build_url}\1/)\n|")
4242
comment="Preview of modified Markdown files:\n\n$comment"
4343
fi
4444
45-
echo -e $comment > comment.md
45+
echo -e "$comment" > comment.md
4646
4747
- name: Find comment
4848
id: find-comment

0 commit comments

Comments
 (0)