diff --git a/.github/workflows/add-remove-labels.yml b/.github/workflows/add-remove-labels.yml index 31a6fd705..1665ccb89 100644 --- a/.github/workflows/add-remove-labels.yml +++ b/.github/workflows/add-remove-labels.yml @@ -38,10 +38,18 @@ jobs: - name: Acknowledge the review with thumbs up reaction if: ${{ github.event.review }} - uses: peter-evans/create-or-update-comment@v4 - with: - comment-id: ${{ github.event.review.id }} - reactions: '+1' + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + REVIEW_COMMENT_ID: ${{ github.event.review.id }} + REPO_NAME: ${{ github.event.repository.name }} + REPO_OWNER: ${{ github.event.repository.owner.login }} + run: + gh api \ + --method POST \ + -H "Accept: application/vnd.github+json" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + /repos/$REPO_OWNER/$REPO_NAME/pulls/comments/$REVIEW_COMMENT_ID/reactions \ + -f "content=+1" - uses: actions/checkout@v4