Update test command workflow

This commit is contained in:
Peter Evans 2021-04-09 14:31:37 +09:00
parent d100c275be
commit ac60f19020
2 changed files with 18 additions and 0 deletions

3
.github/comment-template.md vendored Normal file
View File

@ -0,0 +1,3 @@
This is a test comment template
Render template variables such as {{ .foo }} and {{ .bar }}.

View File

@ -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 }}