mirror of
https://gitlink.org.cn/pooneyy/1Panel-Appstore.git
synced 2026-04-24 10:41:42 +08:00
chore(renovate): update shell script regex for docker image detection
- modify regex pattern in custom manager to optionally match lines starting with '# renovate' comment - improve pattern to handle newlines before variable assignment for better compatibility
This commit is contained in:
parent
5c2361485f
commit
d79ff3ffb4
@ -316,7 +316,7 @@
|
|||||||
"managerFilePatterns": ["/(^|/).+\\.sh$/"],
|
"managerFilePatterns": ["/(^|/).+\\.sh$/"],
|
||||||
"matchStrings": [
|
"matchStrings": [
|
||||||
// 调试正则表达式: https://regexr.com/8jlns
|
// 调试正则表达式: https://regexr.com/8jlns
|
||||||
"([\\S]+=)(?<depName>[\\S]+):(?<currentValue>[\\S]+)"
|
"(?:# renovate)(?:\\n+)?([\\S]+=)(?<depName>[\\S]+):(?<currentValue>[\\S]+)"
|
||||||
],
|
],
|
||||||
"datasourceTemplate": "{{#if datasource}}{{{datasource}}}{{else}}docker{{/if}}"
|
"datasourceTemplate": "{{#if datasource}}{{{datasource}}}{{else}}docker{{/if}}"
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user