Skip to content

Commit

Permalink
Merge pull request #241 from TNG/ci/update-dotnet-version-with-renovate
Browse files Browse the repository at this point in the history
Update .NET Version in Workflow and Project Files with Renovate
  • Loading branch information
mak638 authored Mar 22, 2024
2 parents 2c49dab + d0dbf30 commit b979f46
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,36 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:base"],
"customManagers": [
{
"customType": "regex",
"fileMatch": ["^\\.github/workflows/.+?\\.yaml$"],
"matchStrings": ["dotnet-version: (?<currentValue>.+?)\\s"],
"datasourceTemplate": "dotnet-version",
"depNameTemplate": "dotnet-sdk",
"depTypeTemplate": "action"
},
{
"customType": "regex",
"fileMatch": ["(^|/|\\.).*(csproj|pubxml)$"],
"matchStrings": [
"<TargetFramework>net(?<currentValue>[^<]*)</TargetFramework>"
],
"datasourceTemplate": "dotnet-version",
"depNameTemplate": "dotnet-sdk",
"depTypeTemplate": "action"
}
],
"packageRules": [
{
"matchManagers": ["nuget"],
"matchPackagePrefixes": ["xunit", "nunit", "NUnit", "MSTest"],
"matchPackageNames": ["Microsoft.NET.Test.Sdk", "JetBrains.Annotations"],
"enabled": false
},
{
"matchDatasources": ["dotnet-version"],
"groupName": "dotnet version"
}
]
}

0 comments on commit b979f46

Please sign in to comment.