mirror of
https://github.com/peter-evans/create-or-update-comment.git
synced 2025-02-23 13:00:09 +08:00
Merge pull request #95 from mfn/mfn-bash-fixes
Use double quotes to preserve adjacent spaces correctly
This commit is contained in:
commit
85a7ce6345
@ -164,11 +164,11 @@ The content must be [escaped to preserve newlines](https://github.community/t/se
|
||||
```yml
|
||||
- id: get-comment-body
|
||||
run: |
|
||||
body=$(cat comment-body.txt)
|
||||
body="$(cat comment-body.txt)"
|
||||
body="${body//'%'/'%25'}"
|
||||
body="${body//$'\n'/'%0A'}"
|
||||
body="${body//$'\r'/'%0D'}"
|
||||
echo ::set-output name=body::$body
|
||||
echo "::set-output name=body::$body"
|
||||
|
||||
- name: Create comment
|
||||
uses: peter-evans/create-or-update-comment@v1
|
||||
|
Loading…
x
Reference in New Issue
Block a user