Skip to content

Commit

Permalink
Update Go version used in the CI using renovate (#3585)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
swiatekm authored Jan 2, 2025
1 parent cb19499 commit 742a8f6
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -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: \"~(?<currentValue>.+)\""
]
},
{
"customType": "regex",
"description" : "Update tool versions in the Makefile",
Expand All @@ -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"],
Expand Down

0 comments on commit 742a8f6

Please sign in to comment.