Skip to content

Commit 76f2467

Browse files
committed
Update comment rather than creating new ones
1 parent 7835abf commit 76f2467

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/benchmark_pr.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,18 @@ jobs:
6161
echo 'A plot of the benchmark results have been uploaded as an artifact to the workflow run for this PR.' >> body.md
6262
echo 'Go to "Actions"->"Benchmark a pull request"->[the most recent run]->"Artifacts" (at the bottom).' >> body.md
6363
64+
- name: Find Comment
65+
uses: peter-evans/find-comment@v2
66+
id: fcbenchmark
67+
with:
68+
issue-number: ${{ github.event.pull_request.number }}
69+
comment-author: 'github-actions[bot]'
70+
body-includes: Benchmark Results
71+
6472
- name: Comment on PR
6573
uses: peter-evans/create-or-update-comment@v3
6674
with:
75+
comment-id: ${{ steps.fcbenchmark.outputs.comment-id }}
6776
issue-number: ${{ github.event.pull_request.number }}
6877
body-path: body.md
78+
edit-mode: replace

0 commit comments

Comments
 (0)