Skip to content

Commit 2271359

Browse files
Add merge workflow
1 parent b13e711 commit 2271359

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/merge.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: merge
2+
on: pull_request
3+
4+
permissions:
5+
contents: write
6+
pull-requests: write
7+
8+
jobs:
9+
dependabot:
10+
runs-on: ubuntu-latest
11+
needs: [build]
12+
if: ${{ github.actor == 'dependabot[bot]' }}
13+
steps:
14+
- name: Enable auto-merge for Dependabot PRs
15+
run: gh pr merge --auto --merge "$PR_URL"
16+
env:
17+
PR_URL: ${{github.event.pull_request.html_url}}
18+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)