Skip to content

Commit cebb422

Browse files
swiatekmStarefossen
authored andcommitted
Update Go version used in the CI using renovate (open-telemetry#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.
1 parent 954447b commit cebb422

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

renovate.json

Lines changed: 18 additions & 0 deletions
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)