Skip to content

Commit

Permalink
Merge pull request #95 from mfn/mfn-bash-fixes
Browse files Browse the repository at this point in the history
Use double quotes to preserve adjacent spaces correctly
  • Loading branch information
peter-evans authored Oct 27, 2021
2 parents dfd809e + 6484e4d commit 85a7ce6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,11 @@ The content must be [escaped to preserve newlines](https://github.saobby.my.eu.orgmunity/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
Expand Down

0 comments on commit 85a7ce6

Please sign in to comment.