Skip to content

Commit 5ab6d9a

Browse files
committed
Update Go version used in the CI using renovate
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.
1 parent ea0da98 commit 5ab6d9a

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

renovate.json

+18
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,18 @@
33
"labels": ["dependencies"],
44
"enabledManagers": ["regex"],
55
"customManagers": [
6+
{
7+
"customType": "regex",
8+
"description" : "Update Go versions used for building in the CI",
9+
"datasourceTemplate": "golang-version",
10+
"depNameTemplate": "go",
11+
"fileMatch": [
12+
"(^|/)\\.github/workflows/.+\\.ya?ml$"
13+
],
14+
"matchStrings": [
15+
"go-version: \"~(?<currentValue>.+)\""
16+
]
17+
},
618
{
719
"customType": "regex",
820
"description" : "Update tool versions in the Makefile",
@@ -15,6 +27,12 @@
1527
}
1628
],
1729
"packageRules": [
30+
{
31+
"matchDatasources": ["golang-version"],
32+
"matchManagers": ["regex"],
33+
"matchFileNames": [".github/workflows/*.yaml", ".github/workflows/*.yml"],
34+
"commitMessageTopic": "go version in CI"
35+
},
1836
{
1937
"matchManagers": ["regex"],
2038
"matchFileNames": ["Makefile"],

0 commit comments

Comments
 (0)