-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrenovate.json
More file actions
59 lines (59 loc) · 1.59 KB
/
renovate.json
File metadata and controls
59 lines (59 loc) · 1.59 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended"
],
"nix": {
"enabled": true
},
"customManagers": [
{
"customType": "regex",
"fileMatch": [
"^pkgs/zjstatus-plugin/default\\.nix$"
],
"matchStrings": [
"url = \\\"https://github\\.com/(?<depName>[^/]+/[^/]+)/releases/download/(?<currentValue>v[^\\\"]+)/zjstatus\\.wasm\\\";\\n\\s*hash = \\\"[^\\\"]+\\\";"
],
"datasourceTemplate": "github-releases"
}
],
"packageRules": [
{
"matchManagers": [
"nix"
],
"matchFileNames": [
"**/flake.lock"
],
"automerge": true,
"automergeType": "branch",
"platformAutomerge": false
},
{
"matchManagers": [
"custom.regex"
],
"matchPackageNames": [
"dj95/zjstatus"
],
"versioning": "semver",
"extractVersion": "^v(?<version>.*)$",
"postUpgradeTasks": {
"commands": [
"bash -lc 'URL=\"https://github.com/dj95/zjstatus/releases/download/{{{newValue}}}/zjstatus.wasm\"; HASH=$(nix store prefetch-file --json \"$URL\" | python3 -c \"import json,sys;print(json.load(sys.stdin)[\\\"hash\\\"])\"); sed -i -E \"s#hash = \\\"[^\\\"]+\\\";#hash = \\\"$HASH\\\";#\" pkgs/zjstatus-plugin/default.nix'"
],
"fileFilters": [
"pkgs/zjstatus-plugin/default.nix"
],
"executionMode": "update"
}
}
],
"lockFileMaintenance": {
"enabled": true,
"automerge": true,
"automergeType": "branch",
"platformAutomerge": true
}
}