Skip to content

Commit

Permalink
ci: enable auto-merge for dependabot pull requests (#5063)
Browse files Browse the repository at this point in the history
Enabling auto-merge doesn't actually merge these PRs because we still
require approvals.
  • Loading branch information
ferrarimarco committed Dec 24, 2023
1 parent df6543f commit 59154bf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/dependabot-automation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
...

0 comments on commit 59154bf

Please sign in to comment.