From 4b81c646b935fc70406ff0a66bc33a39aa3cc724 Mon Sep 17 00:00:00 2001 From: Peter Evans Date: Thu, 9 Apr 2020 19:02:17 +0900 Subject: [PATCH] Add workflow --- .github/workflows/create-on-pull-request.yml | 33 ++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/create-on-pull-request.yml diff --git a/.github/workflows/create-on-pull-request.yml b/.github/workflows/create-on-pull-request.yml new file mode 100644 index 0000000..0cf3074 --- /dev/null +++ b/.github/workflows/create-on-pull-request.yml @@ -0,0 +1,33 @@ +name: Create Comment +on: + pull_request: + branches: + - master +jobs: + createComment: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + # For debugging purposes. Remove this in production. + - name: Dump GitHub context + env: + GITHUB_CONTEXT: ${{ toJson(github) }} + run: echo "$GITHUB_CONTEXT" + + - name: Create comment + uses: ./ + id: couc + with: + issue-number: ${{ github.event.number }} + body: | + This is a multi-line test comment + - With GitHub **Markdown** + - Created by [create-or-update-comment][1] + + [1]: https://github.com/peter-evans/create-or-update-comment + reaction-type: '+1' + + - name: Check outputs + run: | + echo "Comment ID - ${{ steps.couc.outputs.comment-id }}"