Skip to content

Commit 58add0d

Browse files
Update merge.yml
1 parent 2271359 commit 58add0d

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/merge.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,22 @@ permissions:
66
pull-requests: write
77

88
jobs:
9-
dependabot:
9+
merge:
1010
runs-on: ubuntu-latest
11-
needs: [build]
1211
if: ${{ github.actor == 'dependabot[bot]' }}
1312
steps:
13+
- name: Dependabot metadata
14+
id: metadata
15+
uses: dependabot/fetch-metadata@v1
16+
with:
17+
github-token: "${{ secrets.GITHUB_TOKEN }}"
1418
- name: Enable auto-merge for Dependabot PRs
15-
run: gh pr merge --auto --merge "$PR_URL"
19+
run: gh pr merge --auto --squash "$PR_URL"
20+
env:
21+
PR_URL: ${{github.event.pull_request.html_url}}
22+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
23+
- name: Approve a PR
24+
run: gh pr review --approve "$PR_URL"
1625
env:
1726
PR_URL: ${{github.event.pull_request.html_url}}
1827
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)