Skip to content

Commit 8960fda

Browse files
authored
only comment if triggred by issue_comment
1 parent 3bbeb7f commit 8960fda

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/pr-deploy.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ jobs:
6262

6363
- name: Comment on PR
6464
id: comment_id
65+
if: github.event_name == "issue_comment"
6566
uses: peter-evans/create-or-update-comment@v3
6667
with:
6768
issue-number: ${{ steps.pr_info.outputs.PR_NUMBER }}
@@ -232,6 +233,7 @@ jobs:
232233

233234
- name: Find Comment
234235
uses: peter-evans/find-comment@v2
236+
if: github.event_name == "issue_comment"
235237
id: fc
236238
with:
237239
issue-number: ${{ env.PR_NUMBER }}
@@ -241,6 +243,7 @@ jobs:
241243

242244
- name: Comment on PR
243245
uses: peter-evans/create-or-update-comment@v3
246+
if: github.event_name == "issue_comment"
244247
with:
245248
issue-number: ${{ env.PR_NUMBER }}
246249
edit-mode: replace

0 commit comments

Comments
 (0)