fix(app/action): fix output_action: none (#649)

This commit is contained in:
Simon Lecoq
2021-11-03 21:51:51 -04:00
committed by GitHub
parent cea5f01f9a
commit f873920871

View File

@@ -355,6 +355,13 @@ async function wait(seconds) {
info(`Save to /metrics_renders/${filename}`, "ok")
}
//No output action apart from file on runner
if (_output === "none") {
info.break()
console.log("Success, thanks for using metrics!")
process.exit(0)
}
//Cache
if (/markdown/.test(convert)) {
const regex = /(?<match><img class="metrics-cachable" data-name="(?<name>[\s\S]+?)" src="data:image[/](?<format>(?:svg[+]xml)|jpeg|png);base64,(?<content>[/+=\w]+)">)/g