mirror of
https://github.com/peter-evans/create-or-update-comment.git
synced 2025-04-01 21:00:10 +08:00
Update test command
This commit is contained in:
parent
7305482173
commit
72ced3ac0a
5
.github/multiline-content.md
vendored
Normal file
5
.github/multiline-content.md
vendored
Normal 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
|
16
.github/workflows/test-command.yml
vendored
16
.github/workflows/test-command.yml
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user