Update test command

This commit is contained in:
Peter Evans 2022-10-21 12:34:03 +09:00
parent 7305482173
commit 72ced3ac0a
2 changed files with 21 additions and 0 deletions

5
.github/multiline-content.md vendored Normal file
View File

@ -0,0 +1,5 @@
This is a multi-line test comment read from a file.
- With GitHub **Markdown** :sparkles:
- Created by [create-or-update-comment][1]
[1]: https://github.com/peter-evans/create-or-update-comment

View File

@ -60,6 +60,22 @@ jobs:
comment-id: ${{ github.event.client_payload.github.payload.comment.id }}
reactions: hooray
# Test create with body from file
- id: get-comment-body
run: |
body="$(cat .github/multiline-content.md)"
delimiter="$(openssl rand -hex 8)"
echo "body<<$delimiter" >> $GITHUB_OUTPUT
echo $body >> $GITHUB_OUTPUT
echo $delimiter >> $GITHUB_OUTPUT
- name: Create comment
uses: ./
with:
issue-number: 1
body: ${{ steps.get-comment-body.outputs.body }}
# Test create from template
- name: Render template
id: template
uses: chuhlomin/render-template@v1.5