diff --git a/.github/workflows/pre-commit-auto-update.yml b/.github/workflows/pre-commit-auto-update.yml index 7ddd373..45bc16a 100644 --- a/.github/workflows/pre-commit-auto-update.yml +++ b/.github/workflows/pre-commit-auto-update.yml @@ -49,3 +49,10 @@ jobs: if: ${{ steps.cpr.outputs.pull-request-number }} run: | echo "Pull request: ${{ steps.cpr.outputs.pull-request-url }}" + + - name: Approve update + if: ${{ steps.cpr.outputs.pull-request-number }} + run: | + gh pr review --approve "${{ steps.cpr.outputs.pull-request-url }}" + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}