Skip to content

Commit bbc20de

Browse files
committed
Configure main-vs-deps
1 parent c57eb1c commit bbc20de

File tree

4 files changed

+42
-8
lines changed

4 files changed

+42
-8
lines changed

.github/workflows/main-merge.yml

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,31 @@
1-
# Merges any changes from release/prerelease to main (e.g. servicing changes)
1+
# See https://github.com/dotnet/arcade/blob/e52018a/Documentation/Maestro/New-Inter-Branch-Merge-Approach.md
22

3-
name: Flow main to release/dev18.0
3+
name: Inter-branch merge
44
on:
5-
schedule:
6-
# once a day at 13:00 UTC to cleanup old runs
7-
- cron: '0 13 * * *'
5+
push:
6+
branches:
7+
- main
88
workflow_dispatch:
9+
inputs:
10+
configuration_file_branch:
11+
description: 'Branch to use for configuration file'
12+
required: true
13+
default: 'main'
914

1015
permissions:
1116
contents: write
1217
pull-requests: write
1318

1419
jobs:
15-
check-script:
20+
# The config does not support multiple flows from the same source branch,
21+
# so we need to run separately for each duplicate source branch (https://github.com/dotnet/arcade/issues/15586).
22+
merge:
1623
uses: dotnet/arcade/.github/workflows/inter-branch-merge-base.yml@main
1724
with:
18-
configuration_file_path: '.config/branch-merge.json'
25+
configuration_file_path: 'eng/config/branch-merge.jsonc'
26+
configuration_file_branch: ${{ inputs.configuration_file_branch || 'main' }}
27+
merge-2:
28+
uses: dotnet/arcade/.github/workflows/inter-branch-merge-base.yml@main
29+
with:
30+
configuration_file_path: 'eng/config/branch-merge-2.jsonc'
31+
configuration_file_branch: ${{ inputs.configuration_file_branch || 'main' }}

eng/config/PublishData.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,16 @@
178178
"insertionCreateDraftPR": true
179179
},
180180
"main": {
181+
"nugetKind": [
182+
"Shipping",
183+
"NonShipping"
184+
],
185+
"vsBranch": "main",
186+
"vsMajorVersion": 17,
187+
"insertionCreateDraftPR": true,
188+
"insertionTitlePrefix": "[d17.14 P3]"
189+
},
190+
"main-vs-deps": {
181191
"nugetKind": [
182192
"Shipping",
183193
"NonShipping"

eng/config/branch-merge-2.jsonc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Used by .github/workflows/main-merge.yml
2+
{
3+
"merge-flow-configurations": {
4+
// Merge any main changes to main-vs-deps.
5+
"main": {
6+
"MergeToBranch": "main-vs-deps",
7+
"ExtraSwitches": "-QuietComments"
8+
}
9+
}
10+
}
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Used by .github/workflows/main-merge.yml
12
{
23
"merge-flow-configurations": {
34
// Merge any main changes to release/dev18.0.
@@ -6,4 +7,4 @@
67
"ExtraSwitches": "-QuietComments"
78
}
89
}
9-
}
10+
}

0 commit comments

Comments
 (0)