From dfbadb896e7eb2401044649463220c938de10926 Mon Sep 17 00:00:00 2001 From: Doeunnkimm Date: Sat, 29 Jun 2024 23:32:14 +0900 Subject: [PATCH] fix --- .github/workflows/auto-approve.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/auto-approve.yml b/.github/workflows/auto-approve.yml index e49630bd..cc0b8322 100644 --- a/.github/workflows/auto-approve.yml +++ b/.github/workflows/auto-approve.yml @@ -14,15 +14,11 @@ jobs: uses: actions/checkout@v2 - name: Auto approve PR - uses: hmarr/auto-approve-action@v2.0.0 - with: - github-token: ${{ secrets.ACCESS_TOKEN }} - - - name: Comment on PR run: | PR_NUMBER=$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH") + REVIEW_BODY="고생했다. 🎉👍🏽" curl -s -X POST \ -H "Authorization: token ${{ secrets.ACCESS_TOKEN }}" \ -H "Content-Type: application/json" \ - -d "{\"body\":\"고생했다. 🎉👍🏽\"}" \ - "https://api.github.com/repos/${{ github.repository }}/issues/${PR_NUMBER}/comments" + -d "{\"event\":\"APPROVE\", \"body\":\"${REVIEW_BODY}\"}" \ + "https://api.github.com/repos/${{ github.repository }}/pulls/${PR_NUMBER}/reviews"