Skip to content

Commit

Permalink
Update test command
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Evans committed Oct 21, 2022
1 parent 7305482 commit 72ced3a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/multiline-content.md
Original file line number Diff line number Diff line change
@@ -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 changes: 16 additions & 0 deletions .github/workflows/test-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 72ced3a

Please sign in to comment.