Skip to content

Commit c9b4f3d

Browse files
authored
Merge pull request #7357 from dibarbet/branch_merge_action
Add github action for scheduled branch merge
2 parents 2882247 + d918234 commit c9b4f3d

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.config/branch-merge.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"merge-flow-configurations": {
3+
// Merge any prerelease only changes to main.
4+
"prerelease": {
5+
"MergeToBranch": "main",
6+
"ExtraSwitches": "-QuietComments"
7+
},
8+
// Merge any release only changes to main.
9+
"release": {
10+
"MergeToBranch": "release",
11+
"ExtraSwitches": "-QuietComments"
12+
}
13+
}
14+
}

.github/workflows/branch-merge.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Merges any changes from release/prerelease to main (e.g. servicing changes)
2+
3+
name: Flow release/prerelease changes to main
4+
on:
5+
workflow_dispatch:
6+
schedule:
7+
- cron: '0 */3 * * *'
8+
9+
permissions:
10+
contents: write
11+
pull-requests: write
12+
13+
jobs:
14+
check-script:
15+
uses: dotnet/arcade/.github/workflows/inter-branch-merge-base.yml@main
16+
with:
17+
configuration_file_path: '.config/branch-merge.json'

0 commit comments

Comments
 (0)