File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -82,13 +82,23 @@ jobs:
82
82
# Ensure the script itself doesn't fail the workflow:
83
83
exit 0
84
84
85
+ # Check if the commit message already exists in the PR comments:
86
+ - name : ' Check if commit message already exists in PR comments'
87
+ uses : peter-evans/find-comment@3eae4d37986fb5a8592848f6a574fdf654e61f9e # v3.1.0
88
+ id : fc
89
+ with :
90
+ issue-number : ${{ github.event.pull_request.number }}
91
+ body-includes : ' <!-- PR_COMMIT_MESSAGE -->'
92
+
85
93
# Post commit message as PR comment:
86
94
- name : ' Post commit message as PR comment'
87
95
# Pin action to full length commit SHA
88
96
uses : peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0
89
97
with :
90
98
token : ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }}
99
+ comment-id : ${{ steps.fc.outputs.comment-id }}
91
100
issue-number : ${{ github.event.pull_request.number }}
101
+ edit-mode : replace
92
102
body : |
93
103
### PR Commit Message
94
104
You can’t perform that action at this time.
0 commit comments