Skip to content

Commit e9bd7de

Browse files
committed
Add auto merge workflow
1 parent 0f1884f commit e9bd7de

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/auto-merge.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Auto merge
2+
on: pull_request
3+
jobs:
4+
merge:
5+
if: ${{ github.actor == 'dependabot[bot]' }}
6+
runs-on: ubuntu-latest
7+
permissions:
8+
contents: write
9+
pull-requests: write
10+
env:
11+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12+
steps:
13+
- uses: actions/checkout@v4
14+
- run: |
15+
gh pr review "${GITHUB_HEAD_REF}" --approve
16+
gh pr merge "${GITHUB_HEAD_REF}" --merge --auto

0 commit comments

Comments
 (0)