Skip to content

Commit 64287bd

Browse files
authored
Fix script invalidation when delimiter appears in text (#129)
Signed-off-by: Hendrix-Shen <[email protected]>
1 parent baf773e commit 64287bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
5656
if [ "${{ inputs.publish_type }}" == 'release' ]
5757
then
58-
github_change_log=${{ github.event.release.body }}
58+
github_changelog=$(printf '%q' "${{ github.event.release.body }}")
5959
github_tag=${{ github.event.ref }}
6060
release_title=${{ github.event.release.name }}
6161
elif [ "${{ inputs.publish_type }}" == "dev" ]
@@ -77,7 +77,7 @@ jobs:
7777
7878
Latest commit log:
7979
80-
${{ github.event.head_commit.message }}"
80+
$(printf '%q' "${{ github.event.head_commit.message }}")"
8181
else
8282
echo Unknown publish type ${{ inputs.publish_type }}
8383
exit 1

0 commit comments

Comments
 (0)