mirror of
https://github.com/peter-evans/create-or-update-comment.git
synced 2025-01-19 03:26:42 +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
|
- id: get-comment-body
|
||||||
run: |
|
run: |
|
||||||
body="$(cat comment-body.txt)"
|
body="$(cat comment-body.txt)"
|
||||||
body="${body//'%'/'%25'}"
|
delimiter="$(openssl rand -hex 8)"
|
||||||
body="${body//$'\n'/'%0A'}"
|
echo "body<<$delimiter" >> $GITHUB_OUTPUT
|
||||||
body="${body//$'\r'/'%0D'}"
|
echo "$body" >> $GITHUB_OUTPUT
|
||||||
echo "body=$body" >> $GITHUB_OUTPUT
|
echo "$delimiter" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Create comment
|
- name: Create comment
|
||||||
uses: peter-evans/create-or-update-comment@v2
|
uses: peter-evans/create-or-update-comment@v2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user