Skip to content

Commit

Permalink
Merge pull request #7357 from dibarbet/branch_merge_action
Browse files Browse the repository at this point in the history
Add github action for scheduled branch merge
  • Loading branch information
dibarbet authored Jul 16, 2024
2 parents 2882247 + d918234 commit c9b4f3d
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .config/branch-merge.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"merge-flow-configurations": {
// Merge any prerelease only changes to main.
"prerelease": {
"MergeToBranch": "main",
"ExtraSwitches": "-QuietComments"
},
// Merge any release only changes to main.
"release": {
"MergeToBranch": "release",
"ExtraSwitches": "-QuietComments"
}
}
}
17 changes: 17 additions & 0 deletions .github/workflows/branch-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Merges any changes from release/prerelease to main (e.g. servicing changes)

name: Flow release/prerelease changes to main
on:
workflow_dispatch:
schedule:
- cron: '0 */3 * * *'

permissions:
contents: write
pull-requests: write

jobs:
check-script:
uses: dotnet/arcade/.github/workflows/inter-branch-merge-base.yml@main
with:
configuration_file_path: '.config/branch-merge.json'

0 comments on commit c9b4f3d

Please sign in to comment.