Skip to content

Commit 429125e

Browse files
committed
fix(ci): replace non-existent delete-comment action with gh api
peter-evans/delete-comment doesn't exist - use GitHub CLI instead
1 parent da6020c commit 429125e

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,10 @@ jobs:
4545

4646
- name: Delete old lint comments
4747
if: github.event_name == 'pull_request' && steps.find-comment.outputs.comment-id != ''
48-
uses: peter-evans/delete-comment@v2
49-
with:
50-
comment-id: ${{ steps.find-comment.outputs.comment-id }}
48+
env:
49+
GH_TOKEN: ${{ github.token }}
50+
run: |
51+
gh api -X DELETE repos/${{ github.repository }}/issues/comments/${{ steps.find-comment.outputs.comment-id }}
5152

5253
- name: Run initial lint check
5354
id: initial-lint

0 commit comments

Comments
 (0)