Skip to content

Commit 92a0e33

Browse files
authored
fix(ci): automatically merge Dependabot PRs upon approval again (#1117)
1 parent bfdeb62 commit 92a0e33

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# Automatically merge Dependabot PRs upon approval by leaving
2-
# a comment on Dependabot's pull-request.
1+
# Automatically merge Dependabot PRs upon approval.
32

43
name: Automerge Dependabot PR
54
on:
@@ -10,12 +9,11 @@ permissions:
109
pull-requests: write
1110

1211
jobs:
13-
comment:
12+
auto-merge:
1413
if: ${{ github.event.review.state == 'approved' && github.event.pull_request.user.login == 'dependabot[bot]' }}
1514
runs-on: ubuntu-latest
1615
steps:
1716
- name: Merge Dependabot PR
18-
run: gh pr comment --body "@dependabot squash and merge" "$PR_URL"
17+
run: gh pr merge --squash --delete-branch
1918
env:
20-
PR_URL: ${{ github.event.pull_request.html_url }}
2119
GITHUB_TOKEN: ${{ secrets.DEPENDABOT_AUTOMERGE_TOKEN }}

0 commit comments

Comments
 (0)