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 @@ -57,12 +57,22 @@ jobs:
5757 cat spellcheck_output.txt >> comment_body.txt
5858 echo "Generated by GitHub Action run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" >> comment_body.txt
5959
60+ - name : Find existing comment
61+ uses : peter-evans/find-comment@v3
62+ id : find_comment
63+ if : steps.prepare_comment.outcome == 'success'
64+ with :
65+ issue-number : ${{ github.event.pull_request.number }}
66+ comment-author : ' github-actions[bot]'
67+ body-includes : ' <!-- lint-notebooks-spellcheck-comment -->'
68+
6069 - name : Post or Update spell check comment
6170 if : steps.prepare_comment.outcome == 'success'
6271 uses : peter-evans/create-or-update-comment@v4
6372 with :
6473 token : ${{ secrets.GITHUB_TOKEN }}
6574 repository : ${{ github.repository }}
6675 issue-number : ${{ github.event.pull_request.number }}
76+ comment-id : ${{ steps.find_comment.outputs.comment-id }}
6777 body-path : comment_body.txt
6878 edit-mode : replace
You can’t perform that action at this time.
0 commit comments