Skip to content

Commit c2ca35c

Browse files
authored
Add GitHub Actions workflow for merge ups (#1962)
1 parent 9c48575 commit c2ca35c

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/merge-up.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Merge up
2+
3+
on:
4+
push:
5+
branches:
6+
- release/*.*
7+
- v*
8+
9+
permissions:
10+
id-token: write
11+
contents: write
12+
pull-requests: write
13+
14+
jobs:
15+
merge-up:
16+
environment: release
17+
name: Create merge up pull request
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- uses: mongodb-labs/drivers-github-tools/secure-checkout@v2
22+
with:
23+
app_id: ${{ vars.APP_ID }}
24+
private_key: ${{ secrets.APP_PRIVATE_KEY }}
25+
# Make sure to include fetch-depth 0 so all branches are fetched, not
26+
# just the current one
27+
fetch-depth: 0
28+
29+
- name: Create pull request
30+
id: create-pull-request
31+
uses: alcaeus/automatic-merge-up-action@main
32+
with:
33+
ref: ${{ github.ref_name }}
34+
branchNamePattern: 'release/<major>.<minor>'
35+
devBranchNamePattern: 'v<major>'
36+
fallbackBranch: 'master'
37+
enableAutoMerge: true

0 commit comments

Comments
 (0)