Skip to content

Commit 26051ea

Browse files
authored
Update renovate to pick up versions (#1690)
1 parent cc9587d commit 26051ea

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

renovate.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
11
{
22
"extends": [
33
"config:recommended"
4+
],
5+
"regexManagers": [
6+
{
7+
"fileMatch": ["^\\.github\\/workflows\\/.*\\.ya?ml$"],
8+
"matchStrings": [
9+
// match: pip install package==1.2.3 (with optional -U/--upgrade and optional flags after version)
10+
"(?:pip(?:3)?\\s+install(?:\\s+(?:-U|--upgrade))?\\s+)([A-Za-z0-9_.+\\-]+(?:\\[[^\\]]+\\])?)==(?<currentValue>\\d+(?:\\.\\d+)*)"
11+
],
12+
"datasourceTemplate": "pypi",
13+
"depNameTemplate": "$1"
14+
},
15+
{
16+
"fileMatch": ["^\\.github\\/workflows\\/.*\\.ya?ml$"],
17+
"matchStrings": [
18+
// match: pip install -r requirements.txt (capture filename)
19+
"(?:pip(?:3)?\\s+install)\\s+-r\\s+([^\\s]+)"
20+
],
21+
"datasourceTemplate": "file",
22+
"depNameTemplate": "$1"
23+
}
424
]
525
}

0 commit comments

Comments
 (0)