Skip to content

Commit 2ed986b

Browse files
ci: Add a job to auto-merge changes in gir-files
1 parent 965d720 commit 2ed986b

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/auto-merge.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Auto Merge PRs from Specific User
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, labeled]
6+
7+
jobs:
8+
auto-merge:
9+
runs-on: ubuntu-latest
10+
11+
if: github.event.pull_request.user.login == 'github-actions[bot]'
12+
steps:
13+
- name: Checkout
14+
- uses: actions/checkout@v4
15+
16+
- name: Wait for CI checks to complete
17+
uses: ahmadnassri/action-wait-for-check@v1
18+
19+
- name: Merge PR via GitHub CLI
20+
run: gh pr merge ${{ github.event.pull_request.number }} --merge --admin
21+
env:
22+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)