File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -116,15 +116,17 @@ jobs:
116116 echo "count=$COUNT" >> $GITHUB_OUTPUT
117117
118118 - name : Find existing comment
119- uses : peter-evans/find-comment@v3
119+ uses : peter-evans/find-comment@v4
120120 id : find-comment
121121 with :
122122 issue-number : ${{ github.event.pull_request.number }}
123123 comment-author : ' github-actions[bot]'
124124 body-includes : Python Type Checking
125125
126126 - name : Create or update PR comment
127- uses : peter-evans/create-or-update-comment@v4
127+ # Skip if the PR event is triggered by a fork to avoid permission issues when trying to update comments
128+ if : github.event.pull_request.head.repo.full_name == github.repository
129+ uses : peter-evans/create-or-update-comment@v5
128130 with :
129131 comment-id : ${{ steps.find-comment.outputs.comment-id }}
130132 issue-number : ${{ github.event.pull_request.number }}
You can’t perform that action at this time.
0 commit comments