From ac60f19020bafe61e23c0bd2b5f218973ea9b076 Mon Sep 17 00:00:00 2001 From: Peter Evans <18365890+peter-evans@users.noreply.github.com> Date: Fri, 9 Apr 2021 14:31:37 +0900 Subject: [PATCH] Update test command workflow --- .github/comment-template.md | 3 +++ .github/workflows/test-command.yml | 15 +++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 .github/comment-template.md diff --git a/.github/comment-template.md b/.github/comment-template.md new file mode 100644 index 0000000..e5f4e85 --- /dev/null +++ b/.github/comment-template.md @@ -0,0 +1,3 @@ +This is a test comment template + +Render template variables such as {{ .foo }} and {{ .bar }}. diff --git a/.github/workflows/test-command.yml b/.github/workflows/test-command.yml index 1229654..cd672d3 100644 --- a/.github/workflows/test-command.yml +++ b/.github/workflows/test-command.yml @@ -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 }}