Skip to content

Commit 42858ce

Browse files
committed
Only run comment steps for PRs
1 parent f0e28f9 commit 42858ce

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,15 +286,15 @@ runs:
286286

287287
- name: Check if a comment was already made
288288
id: find-comment
289-
if: ${{ inputs.create-comment == 'true' }}
289+
if: ${{ github.event_name == 'pull_request' && inputs.create-comment == 'true' }}
290290
uses: peter-evans/find-comment@a54c31d7fa095754bfef525c0c8e5e5674c4b4b1
291291
with:
292292
issue-number: ${{ github.event.pull_request.number }}
293293
body-includes: Performance test results for
294294

295295
- name: Comment on PR with test results
296296
uses: peter-evans/create-or-update-comment@c6c9a1a66007646a28c153e2a8580a5bad27bcfa
297-
if: ${{ inputs.create-comment == 'true' }}
297+
if: ${{ github.event_name == 'pull_request' && inputs.create-comment == 'true' }}
298298
with:
299299
issue-number: ${{ github.event.pull_request.number }}
300300
comment-id: ${{ steps.find-comment.outputs.comment-id }}

0 commit comments

Comments
 (0)