Skip to content

Commit

Permalink
Only run comment steps for PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy committed Nov 9, 2023
1 parent f0e28f9 commit 42858ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -286,15 +286,15 @@ runs:

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

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

0 comments on commit 42858ce

Please sign in to comment.