-
Notifications
You must be signed in to change notification settings - Fork 463
/
renovate.json
42 lines (42 loc) · 1.38 KB
/
renovate.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"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",
"fileMatch": [
"(^|/)Makefile$"
],
"matchStrings": [
"# renovate: datasource=(?<datasource>[a-z-.]+?) depName=(?<depName>[^\\s]+?)(?: (?:packageName)=(?<packageName>[^\\s]+?))?(?: versioning=(?<versioning>[^\\s]+?))?(?: extractVersion=(?<extractVersion>[^\\s]+?))?(?: registryUrl=(?<registryUrl>[^\\s]+?))?\\s+[A-Za-z0-9_]+?_VERSION\\s*:*\\??=\\s*[\"']?(?<currentValue>.+?)[\"']?\\s"
]
}
],
"packageRules": [
{
"matchDatasources": ["golang-version"],
"matchManagers": ["regex"],
"matchFileNames": [".github/workflows/*.yaml", ".github/workflows/*.yml"],
"commitMessageTopic": "go version in CI"
},
{
"matchManagers": ["regex"],
"matchFileNames": ["Makefile"],
"commitMessageTopic": "tool {{depName}}"
}
]
}