mirror of
https://github.com/peter-evans/create-or-update-comment.git
synced 2025-01-18 19:22:44 +08:00
Correct example in readme
This commit is contained in:
parent
ceb52622e3
commit
c78702ac99
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user