Skip to content

Commit 0184848

Browse files
bart-vmwaredanielpalme
authored andcommitted
Update PR comment command to overwrite existing comment instead of adding a new one on each push.
1 parent 4c0f60d commit 0184848

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ The more advanced settings are documented in the [wiki](https://github.com/danie
4343

4444
- name: Add comment to PR # Only applicable if 'MarkdownSummaryGithub' or one of the other Markdown report types is generated
4545
if: github.event_name == 'pull_request'
46-
run: gh pr comment $PR_NUMBER --body-file coveragereport/SummaryGithub.md # Adjust path and filename if necessary
46+
run: gh pr comment $PR_NUMBER --edit-last --create-if-none --body-file coveragereport/SummaryGithub.md # Adjust path and filename if necessary
4747
env:
4848
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4949
PR_NUMBER: ${{ github.event.number }}

0 commit comments

Comments
 (0)