Skip to content

Commit b979f46

Browse files
authored
Merge pull request #241 from TNG/ci/update-dotnet-version-with-renovate
Update .NET Version in Workflow and Project Files with Renovate
2 parents 2c49dab + d0dbf30 commit b979f46

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

renovate.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,36 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
33
"extends": ["config:base"],
4+
"customManagers": [
5+
{
6+
"customType": "regex",
7+
"fileMatch": ["^\\.github/workflows/.+?\\.yaml$"],
8+
"matchStrings": ["dotnet-version: (?<currentValue>.+?)\\s"],
9+
"datasourceTemplate": "dotnet-version",
10+
"depNameTemplate": "dotnet-sdk",
11+
"depTypeTemplate": "action"
12+
},
13+
{
14+
"customType": "regex",
15+
"fileMatch": ["(^|/|\\.).*(csproj|pubxml)$"],
16+
"matchStrings": [
17+
"<TargetFramework>net(?<currentValue>[^<]*)</TargetFramework>"
18+
],
19+
"datasourceTemplate": "dotnet-version",
20+
"depNameTemplate": "dotnet-sdk",
21+
"depTypeTemplate": "action"
22+
}
23+
],
424
"packageRules": [
525
{
626
"matchManagers": ["nuget"],
727
"matchPackagePrefixes": ["xunit", "nunit", "NUnit", "MSTest"],
828
"matchPackageNames": ["Microsoft.NET.Test.Sdk", "JetBrains.Annotations"],
929
"enabled": false
30+
},
31+
{
32+
"matchDatasources": ["dotnet-version"],
33+
"groupName": "dotnet version"
1034
}
1135
]
1236
}

0 commit comments

Comments
 (0)