Skip to content

Commit dad4876

Browse files
authored
chore: react to deploy-pr comment (#8284)
1 parent 6015319 commit dad4876

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/pr-deploy.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,23 @@ jobs:
5858
CODER_BASE_IMAGE_TAG: ghcr.io/coder/coder-preview-base:pr${{ steps.pr_number.outputs.PR_NUMBER }}
5959
CODER_IMAGE_TAG: ghcr.io/coder/coder-preview:pr${{ steps.pr_number.outputs.PR_NUMBER }}
6060

61+
- name: Find Deploy Comment
62+
if: github.event_name == 'issue_comment'
63+
uses: peter-evans/find-comment@v2
64+
id: fco
65+
with:
66+
issue-number: ${{ steps.pr_number.outputs.PR_NUMBER }}
67+
comment-author: "github-actions[bot]"
68+
body-includes: /deploy-pr
69+
70+
- name: React with Rocket
71+
if: github.event_name == 'issue_comment'
72+
id: comment_ido
73+
uses: peter-evans/create-or-update-comment@v3
74+
with:
75+
comment-id: ${{ steps.fco.outputs.comment-id }}
76+
reactions: rocket
77+
6178
- name: Find Comment
6279
uses: peter-evans/find-comment@v2
6380
id: fc

0 commit comments

Comments
 (0)