Skip to content

Commit

Permalink
[CI] Don't post benchmark comment for PRs opened from forks (EnzymeAD…
Browse files Browse the repository at this point in the history
  • Loading branch information
giordano authored Jan 18, 2025
1 parent b95c737 commit 8d0f9d8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/benchmark_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ jobs:

- name: Comment on PR
uses: peter-evans/create-or-update-comment@v4
# Can't post the comment for PRs opened from forks:
# <https://github.com/peter-evans/create-or-update-comment/blob/fdb73c443d3a4f66832374f01fb9a713fad84937/README.md#action-inputs>.
if: ${{ ! github.event.pull_request.head.repo.fork }}
with:
comment-id: ${{ steps.fcbenchmark.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
Expand Down

0 comments on commit 8d0f9d8

Please sign in to comment.