Skip to content

Commit b221c02

Browse files
committed
ci: enable github auto-merge for dependabot prs
1 parent b6a0a56 commit b221c02

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

.github/workflows/dependabot-auto-merge.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,7 @@ jobs:
2424
contents: write
2525
pull-requests: write
2626
steps:
27-
- name: Checkout repository
28-
uses: actions/checkout@v4
29-
30-
- name: Wait for PR checks
31-
env:
32-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33-
run: gh pr checks ${{ github.event.pull_request.number }} --repo "$GH_REPO" --watch --interval 10
34-
35-
- name: Merge Dependabot PR
27+
- name: Enable auto-merge for Dependabot PR
3628
env:
3729
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38-
run: gh pr merge ${{ github.event.pull_request.number }} --repo "$GH_REPO" --squash --delete-branch
30+
run: gh pr merge ${{ github.event.pull_request.number }} --repo "$GH_REPO" --auto --squash --delete-branch

0 commit comments

Comments
 (0)