Skip to content

Commit

Permalink
chore: test reaction
Browse files Browse the repository at this point in the history
  • Loading branch information
NWYLZW committed Sep 20, 2023
1 parent 9b764b2 commit d19a67d
Showing 1 changed file with 29 additions and 22 deletions.
51 changes: 29 additions & 22 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,31 +18,38 @@ jobs:
contents: write

steps:
- name: Find Comment
uses: peter-evans/find-comment@v2
id: fc
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'NWYLZW'
body-includes: Test

- name: Create comment
if: steps.fc.outputs.comment-id == ''
- name: Add reaction
uses: peter-evans/create-or-update-comment@v3
with:
issue-number: ${{ github.event.pull_request.number }}
body: |
This comment was written by a bot!
reactions: rocket
comment-id: ${{ github.event.comment.id }}
reactions: eyes

# - name: Find Comment
# uses: peter-evans/find-comment@v2
# id: fc
# with:
# issue-number: ${{ github.event.pull_request.number }}
# comment-author: 'NWYLZW'
# body-includes: Test
#
# - name: Create comment
# if: steps.fc.outputs.comment-id == ''
# uses: peter-evans/create-or-update-comment@v3
# with:
# issue-number: ${{ github.event.pull_request.number }}
# body: |
# This comment was written by a bot!
# reactions: rocket
#
# - name: Update comment
# if: steps.fc.outputs.comment-id != ''
# uses: peter-evans/create-or-update-comment@v3
# with:
# comment-id: ${{ steps.fc.outputs.comment-id }}
# body: |
# This comment has been updated!
# reactions: hooray

- name: Update comment
if: steps.fc.outputs.comment-id != ''
uses: peter-evans/create-or-update-comment@v3
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
body: |
This comment has been updated!
reactions: hooray
# - uses: actions/checkout@v4
# with:
# fetch-depth: 0
Expand Down

0 comments on commit d19a67d

Please sign in to comment.