0
0
mirror of https://github.com/yanhao98/renovate-example.git synced 2025-07-13 00:20:49 +08:00
This commit is contained in:
严浩
2024-10-16 10:03:05 +08:00
parent e6b640878a
commit a4e33984b7
2 changed files with 10 additions and 1 deletions

View File

@ -4,7 +4,8 @@
"validator": "renovate-config-validator ./default.json5",
"validator:strict": "renovate-config-validator ./default.json5 --strict",
"validator:npx": "npx --yes --package renovate -- renovate-config-validator --strict",
"dry-run:npx": "LOG_LEVEL=debug npx renovate --token= --platform=local --dry-run=full"
"dry-run:npx": "LOG_LEVEL=debug npx renovate --token= --platform=local --dry-run=full",
"test-regex":"bun --bun test-regex/run.mjs"
},
"devDependencies": {
"renovate": "^38.124.0",

View File

@ -18,3 +18,11 @@ const filecontent = fs.readFileSync(path.join(__dirname, "file.txt"), "utf8");
const regex = "# renovate: datasource=(?<datasource>\\S+) depName=(?<depName>\\S+):(?<currentValue>\\S+)@(?<currentDigest>\\S+)";
extractMatchResult(regex, filecontent);
})();
(() => {
const regex = "^\\.github/workflows/[^/]+\\.ya?ml$";
extractMatchResult(regex, ".github/workflows/中 | 文 : 文件名.yaml");
})();
// TODO: run.mjs regex file