From 59154bf97f8cee4ab4b0d64afca83e41355b9924 Mon Sep 17 00:00:00 2001 From: Marco Ferrari Date: Sun, 24 Dec 2023 17:20:13 +0100 Subject: [PATCH] ci: enable auto-merge for dependabot pull requests (#5063) Enabling auto-merge doesn't actually merge these PRs because we still require approvals. --- .github/workflows/dependabot-automation.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dependabot-automation.yaml b/.github/workflows/dependabot-automation.yaml index c3dd7b5d..c0756e13 100644 --- a/.github/workflows/dependabot-automation.yaml +++ b/.github/workflows/dependabot-automation.yaml @@ -24,6 +24,7 @@ jobs: uses: dependabot/fetch-metadata@v1 with: github-token: "${{ secrets.GITHUB_TOKEN }}" - - name: Approve the PR - run: gh pr review --approve "${PR_URL}" + # This doesn't trigger an automated merge because we require at approvals + - name: Enable auto-merge + run: gh pr merge --auto --squash --delete-branch "${PR_URL}" ...