add transmission-openvpn (#23)

This commit is contained in:
Arne Petersen
2020-01-11 09:45:21 +01:00
committed by GitHub
parent a5c5512bf4
commit e232593950
8 changed files with 131 additions and 2 deletions

View File

@@ -24,11 +24,11 @@ async function run(opts: { patch: boolean })
let updated = false;
for (const addon of dirs)
{
if(addon === "tmp")
if (addon === "tmp")
{
continue;
}
if (!first)
{
console.log(chalk.gray("============================================================="));
@@ -56,6 +56,7 @@ async function run(opts: { patch: boolean })
}
const versionRegex = config.maintenance.version_regex ? new RegExp(config.maintenance.version_regex) : null;
const releaseRegex = config.maintenance.release_regex ? new RegExp(config.maintenance.release_regex) : null;
const addonPath = path.join(root, addon);
const changelogPath = path.join(addonPath, "CHANGELOG.md");
@@ -83,6 +84,15 @@ async function run(opts: { patch: boolean })
}
}
if (releaseRegex)
{
const r = releaseRegex.exec(releaseInfo.tag_name);
if (r && r.length > 1)
{
releaseInfo.tag_name = r[1];
}
}
if (tag == releaseInfo.tag_name)
{
console.log(chalk.greenBright(`base image ${image}:${chalk.magenta(coloredTag)} is up-to-date`))