create-or-update-comment/.github/workflows/update-comment.yml

32 lines
783 B
YAML
Raw Normal View History

2019-11-24 16:38:53 +08:00
name: Update Comment
on:
issue_comment:
types: [created]
jobs:
updateComment:
runs-on: ubuntu-latest
steps:
2020-01-04 08:50:17 +08:00
- uses: actions/checkout@v2
2019-11-24 16:38:53 +08: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 17:05:40 +08:00
if: github.event.issue.number == 1
2019-11-24 16:38:53 +08:00
uses: ./
with:
comment-id: ${{ github.event.comment.id }}
body: |
**Edit:** Some additional info
reaction-type: eyes
- name: Add reaction
2019-11-24 17:05:40 +08:00
if: github.event.issue.number == 1
2019-11-24 16:38:53 +08:00
uses: ./
with:
comment-id: ${{ github.event.comment.id }}
reaction-type: heart