Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 20 additions & 7 deletions .github/workflows/main-merge.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,31 @@
# Merges any changes from release/prerelease to main (e.g. servicing changes)
# See https://github.com/dotnet/arcade/blob/e52018a/Documentation/Maestro/New-Inter-Branch-Merge-Approach.md

name: Flow main to release/dev18.0
name: Inter-branch merge
on:
schedule:
# once a day at 13:00 UTC to cleanup old runs
- cron: '0 13 * * *'
push:
branches:
- main
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we want to update merge PRs on push. I recommend using an every 3 hours schedule as the old GitHub Merge PR bot would.

Suggested change
push:
branches:
- main
schedule:
# Create a merge every 3 hours.
- cron: '0 */3 * * *'

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, we can do that, although that works only for main, if we ever add other flows, they need the push trigger (because the arcade script has $env:GITHUB_REF hardcoded as the source branch to merge).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. All the things I would change, if only I had more time.

workflow_dispatch:
inputs:
configuration_file_branch:
description: 'Branch to use for configuration file'
required: true
default: 'main'

permissions:
contents: write
pull-requests: write

jobs:
check-script:
# The config does not support multiple flows from the same source branch,
# so we need to run separately for each duplicate source branch (https://github.com/dotnet/arcade/issues/15586).
merge:
uses: dotnet/arcade/.github/workflows/inter-branch-merge-base.yml@main
with:
configuration_file_path: '.config/branch-merge.json'
configuration_file_path: 'eng/config/branch-merge.jsonc'
configuration_file_branch: ${{ inputs.configuration_file_branch || 'main' }}
merge-2:
uses: dotnet/arcade/.github/workflows/inter-branch-merge-base.yml@main
with:
configuration_file_path: 'eng/config/branch-merge-2.jsonc'
configuration_file_branch: ${{ inputs.configuration_file_branch || 'main' }}
10 changes: 10 additions & 0 deletions eng/config/PublishData.json
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,16 @@
"insertionCreateDraftPR": true
},
"main": {
"nugetKind": [
"Shipping",
"NonShipping"
],
"vsBranch": "main",
"vsMajorVersion": 17,
"insertionCreateDraftPR": true,
"insertionTitlePrefix": "[d17.14 P3]"
},
"main-vs-deps": {
"nugetKind": [
"Shipping",
"NonShipping"
Expand Down
10 changes: 10 additions & 0 deletions eng/config/branch-merge-2.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Used by .github/workflows/main-merge.yml
{
"merge-flow-configurations": {
// Merge any main changes to main-vs-deps.
"main": {
"MergeToBranch": "main-vs-deps",
"ExtraSwitches": "-QuietComments"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Used by .github/workflows/main-merge.yml
{
"merge-flow-configurations": {
// Merge any main changes to release/dev18.0.
Expand All @@ -6,4 +7,4 @@
"ExtraSwitches": "-QuietComments"
}
}
}
}
Loading