Skip to content

Commit

Permalink
Update test command workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-evans committed Apr 9, 2021
1 parent d100c27 commit ac60f19
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/comment-template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
This is a test comment template

Render template variables such as {{ .foo }} and {{ .bar }}.
15 changes: 15 additions & 0 deletions .github/workflows/test-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit ac60f19

Please sign in to comment.