File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }}
You can’t perform that action at this time.
0 commit comments