From 742a8f618c15de090f18acaa8add95a986755ea5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20=C5=9Awi=C4=85tek?= Date: Thu, 2 Jan 2025 13:01:12 +0000 Subject: [PATCH] Update Go version used in the CI using renovate (#3585) This should always be the latest version of Go, but should also be explicitly pinned at least at the minor level. Renovate can do this for us, and the maintenance burden of merging the update PRs should be minimal. --- renovate.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/renovate.json b/renovate.json index ab1dcf6c50..7d481e79fc 100644 --- a/renovate.json +++ b/renovate.json @@ -3,6 +3,18 @@ "labels": ["dependencies"], "enabledManagers": ["regex"], "customManagers": [ + { + "customType": "regex", + "description" : "Update Go versions used for building in the CI", + "datasourceTemplate": "golang-version", + "depNameTemplate": "go", + "fileMatch": [ + "(^|/)\\.github/workflows/.+\\.ya?ml$" + ], + "matchStrings": [ + "go-version: \"~(?.+)\"" + ] + }, { "customType": "regex", "description" : "Update tool versions in the Makefile", @@ -15,6 +27,12 @@ } ], "packageRules": [ + { + "matchDatasources": ["golang-version"], + "matchManagers": ["regex"], + "matchFileNames": [".github/workflows/*.yaml", ".github/workflows/*.yml"], + "commitMessageTopic": "go version in CI" + }, { "matchManagers": ["regex"], "matchFileNames": ["Makefile"],