From 1a9fd115ed8203752e3bae1e638fbd254306e963 Mon Sep 17 00:00:00 2001 From: Alexander Linne Date: Fri, 22 Mar 2024 16:07:14 +0100 Subject: [PATCH 1/2] ci: update dotnet version with renovate Signed-off-by: Alexander Linne --- renovate.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/renovate.json b/renovate.json index d6815303..222cc0d6 100644 --- a/renovate.json +++ b/renovate.json @@ -1,12 +1,26 @@ { "$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" + } + ], "packageRules": [ { "matchManagers": ["nuget"], "matchPackagePrefixes": ["xunit", "nunit", "NUnit", "MSTest"], "matchPackageNames": ["Microsoft.NET.Test.Sdk", "JetBrains.Annotations"], "enabled": false + }, + { + "matchDatasources": ["dotnet-version"], + "groupName": "dotnet version" } ] } From d0dbf30d1b441366e7538f45aaa510ef9380e579 Mon Sep 17 00:00:00 2001 From: Alexander Linne Date: Fri, 22 Mar 2024 16:29:27 +0100 Subject: [PATCH 2/2] chore: update .NET version in test projects with renovate Signed-off-by: Alexander Linne --- renovate.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/renovate.json b/renovate.json index 222cc0d6..ff17486b 100644 --- a/renovate.json +++ b/renovate.json @@ -9,6 +9,16 @@ "datasourceTemplate": "dotnet-version", "depNameTemplate": "dotnet-sdk", "depTypeTemplate": "action" + }, + { + "customType": "regex", + "fileMatch": ["(^|/|\\.).*(csproj|pubxml)$"], + "matchStrings": [ + "net(?[^<]*)" + ], + "datasourceTemplate": "dotnet-version", + "depNameTemplate": "dotnet-sdk", + "depTypeTemplate": "action" } ], "packageRules": [