From d43497827caf758f369ed65e3eaa8507d3c7b681 Mon Sep 17 00:00:00 2001 From: Zach Borboa Date: Tue, 12 Dec 2023 16:37:32 -0800 Subject: [PATCH] Enable auto-merge for pre-commit auto-update pull requests --- .github/workflows/pre-commit-auto-update.yml | 7 +++++++ 1 file changed, 7 insertions(+) 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: |