Skip to content

Commit faaeb3a

Browse files
authored
Add workflow to create merge-up pull request (#2748)
1 parent 8a7c780 commit faaeb3a

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/merge-up.yml

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

0 commit comments

Comments
 (0)