2019-11-24 17:38:53 +09:00
|
|
|
name: Update Comment
|
|
|
|
on:
|
|
|
|
issue_comment:
|
|
|
|
types: [created]
|
|
|
|
jobs:
|
|
|
|
updateComment:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2020-01-04 09:50:17 +09:00
|
|
|
- uses: actions/checkout@v2
|
2019-11-24 17:38:53 +09:00
|
|
|
|
|
|
|
# For debugging purposes. Remove this in production.
|
|
|
|
- name: Dump GitHub context
|
|
|
|
env:
|
|
|
|
GITHUB_CONTEXT: ${{ toJson(github) }}
|
|
|
|
run: echo "$GITHUB_CONTEXT"
|
|
|
|
|
|
|
|
- name: Update comment
|
2019-11-24 18:05:40 +09:00
|
|
|
if: github.event.issue.number == 1
|
2019-11-24 17:38:53 +09:00
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
comment-id: ${{ github.event.comment.id }}
|
|
|
|
body: |
|
|
|
|
**Edit:** Some additional info
|
|
|
|
reaction-type: eyes
|
|
|
|
|
|
|
|
- name: Add reaction
|
2019-11-24 18:05:40 +09:00
|
|
|
if: github.event.issue.number == 1
|
2019-11-24 17:38:53 +09:00
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
comment-id: ${{ github.event.comment.id }}
|
|
|
|
reaction-type: heart
|