mirror of
https://github.com/peter-evans/create-or-update-comment.git
synced 2025-01-19 03:26:42 +08:00
34 lines
873 B
YAML
34 lines
873 B
YAML
name: Update Comment
|
|
on:
|
|
issue_comment:
|
|
types: [created]
|
|
jobs:
|
|
updateComment:
|
|
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: Update comment
|
|
if: github.event.issue.number == 1
|
|
uses: ./
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
comment-id: ${{ github.event.comment.id }}
|
|
body: |
|
|
**Edit:** Some additional info
|
|
reaction-type: eyes
|
|
|
|
- name: Add reaction
|
|
if: github.event.issue.number == 1
|
|
uses: ./
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
comment-id: ${{ github.event.comment.id }}
|
|
reaction-type: heart
|