Skip to content

Commit 1707b5c

Browse files
Create auto-merge.yml
1 parent 95f1134 commit 1707b5c

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/auto-merge.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Auto-Merge PR
2+
3+
on:
4+
pull_request:
5+
types:
6+
- synchronize # Trigger on any changes to the PR
7+
8+
jobs:
9+
auto-merge:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Merge PR
14+
run: |
15+
git config user.name "${{ github.actor }}"
16+
git config user.email "${{ github.actor }}@users.noreply.github.com"
17+
git checkout -B auto-merge
18+
git pull "${{ github.event.pull_request.head.repo.clone_url }}" "${{ github.event.pull_request.head.ref }}"
19+
git push "${{ github.event.pull_request.head.repo.clone_url }}" auto-merge
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)