Skip to content

Commit aa4f34c

Browse files
authored
Add merge-up action (#69)
1 parent 7c3375d commit aa4f34c

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/merge-up.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Merge up
2+
3+
on:
4+
push:
5+
branches:
6+
- "[0-9]+.[0-9]+"
7+
8+
env:
9+
GH_TOKEN: ${{ secrets.MERGE_UP_TOKEN }}
10+
11+
jobs:
12+
merge-up:
13+
name: Create merge up pull request
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout
18+
id: checkout
19+
uses: actions/checkout@v4
20+
with:
21+
# fetch-depth 0 is required to fetch all branches, not just the branch being built
22+
fetch-depth: 0
23+
token: ${{ secrets.MERGE_UP_TOKEN }}
24+
25+
- name: Create pull request
26+
id: create-pull-request
27+
uses: alcaeus/automatic-merge-up-action@main
28+
with:
29+
ref: ${{ github.ref_name }}
30+
branchNamePattern: '<major>.<minor>'

0 commit comments

Comments
 (0)