Correct example in readme

This commit is contained in:
Peter Evans 2022-10-21 12:48:52 +09:00
parent ceb52622e3
commit c78702ac99

View File

@ -165,10 +165,10 @@ The content must be [escaped to preserve newlines](https://github.community/t/se
- id: get-comment-body
run: |
body="$(cat comment-body.txt)"
body="${body//'%'/'%25'}"
body="${body//$'\n'/'%0A'}"
body="${body//$'\r'/'%0D'}"
echo "body=$body" >> $GITHUB_OUTPUT
delimiter="$(openssl rand -hex 8)"
echo "body<<$delimiter" >> $GITHUB_OUTPUT
echo "$body" >> $GITHUB_OUTPUT
echo "$delimiter" >> $GITHUB_OUTPUT
- name: Create comment
uses: peter-evans/create-or-update-comment@v2