Skip to content

Commit bdc4939

Browse files
committed
Auto-merge pushes to auto-merge branch
1 parent 425ab43 commit bdc4939

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

.github/workflows/auto-merge.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Auto-merge
2+
on:
3+
workflow_run:
4+
workflows: ["build", "Build"]
5+
branches: ["auto-merge"]
6+
types:
7+
- completed
8+
9+
jobs:
10+
on-success:
11+
runs-on: ubuntu-latest
12+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Push current head to main. FF-only
16+
run: git push origin HEAD:main
17+

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: Build
55

66
on:
77
push:
8-
branches: [ "main" ]
8+
branches: [ "main", "auto-merge" ]
99
pull_request:
1010
branches: [ "main" ]
1111

0 commit comments

Comments
 (0)