Skip to content

Commit 8607ef6

Browse files
committed
maybe now it will update the comment
1 parent 3c9337b commit 8607ef6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/lint-notebooks.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)