chore: added if check

This commit is contained in:
Chirag Aggarwal
2025-01-16 07:35:43 +00:00
parent 8e474676d3
commit e278b8a5a2
+3 -3
View File
@@ -237,18 +237,18 @@ jobs:
path: benchmark.json
retention-days: 7
- name: Find Comment
if: github.event.pull_request.head.repo.full_name == github.repository
uses: peter-evans/find-comment@v3
id: fc
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
body-includes: Benchmark results
token: ${{ secrets.GITHUB_TOKEN }}
- name: Comment on PR
if: github.event.pull_request.head.repo.full_name == github.repository
uses: peter-evans/create-or-update-comment@v4
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
body-path: benchmark.txt
edit-mode: replace
token: ${{ secrets.GITHUB_TOKEN }}
edit-mode: replace