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"