2020-04-10 11:03:48 +09:00
|
|
|
name: Create Comment on Pull Request
|
2020-04-09 19:02:17 +09:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
jobs:
|
2020-04-10 11:03:48 +09:00
|
|
|
createCommentOnPullRequest:
|
|
|
|
if: github.event.pull_request.author_association == 'OWNER'
|
2020-04-09 19:02:17 +09:00
|
|
|
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 }}"
|