diff --git a/renovate.json b/renovate.json index d6815303..ff17486b 100644 --- a/renovate.json +++ b/renovate.json @@ -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: (?.+?)\\s"], + "datasourceTemplate": "dotnet-version", + "depNameTemplate": "dotnet-sdk", + "depTypeTemplate": "action" + }, + { + "customType": "regex", + "fileMatch": ["(^|/|\\.).*(csproj|pubxml)$"], + "matchStrings": [ + "net(?[^<]*)" + ], + "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" } ] }