We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95f1134 commit 1707b5cCopy full SHA for 1707b5c
.github/workflows/auto-merge.yml
@@ -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