mirror of
https://github.com/peter-evans/create-or-update-comment.git
synced 2025-01-19 03:26:42 +08:00
Update test command workflow
This commit is contained in:
parent
d100c275be
commit
ac60f19020
3
.github/comment-template.md
vendored
Normal file
3
.github/comment-template.md
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
This is a test comment template
|
||||
|
||||
Render template variables such as {{ .foo }} and {{ .bar }}.
|
15
.github/workflows/test-command.yml
vendored
15
.github/workflows/test-command.yml
vendored
@ -59,3 +59,18 @@ jobs:
|
||||
repository: ${{ github.event.client_payload.github.payload.repository.full_name }}
|
||||
comment-id: ${{ github.event.client_payload.github.payload.comment.id }}
|
||||
reactions: hooray
|
||||
|
||||
- name: Render template
|
||||
id: template
|
||||
uses: chuhlomin/render-template@v1.2
|
||||
with:
|
||||
template: .github/comment-template.md
|
||||
vars: |
|
||||
foo: this
|
||||
bar: that
|
||||
|
||||
- name: Create comment
|
||||
uses: ./
|
||||
with:
|
||||
issue-number: 1
|
||||
body: ${{ steps.template.outputs.result }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user