diff --git a/.github/workflows/pre-commit-auto-update.yml b/.github/workflows/pre-commit-auto-update.yml index d34a157..3434f57 100644 --- a/.github/workflows/pre-commit-auto-update.yml +++ b/.github/workflows/pre-commit-auto-update.yml @@ -51,6 +51,13 @@ jobs: run: | echo "Pull request: ${{ steps.cpr.outputs.pull-request-url }}" + - name: Enable auto-merge for pull request + if: ${{ steps.cpr.outputs.pull-request-number }} + run: | + gh pr merge --auto --merge "${{ steps.cpr.outputs.pull-request-url }}" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Approve update if: ${{ steps.cpr.outputs.pull-request-number }} run: |