Skip to content

Commit b0729c3

Browse files
authored
Update Python type-checking action (#4390)
1 parent 3a21511 commit b0729c3

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/python-type-checking.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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 }}

0 commit comments

Comments
 (0)