fix(app/action): fix output none (#704)

This commit is contained in:
Simon Lecoq
2021-12-07 03:59:29 +01:00
committed by GitHub
parent ec24b37480
commit 01f76e677f

View File

@@ -353,10 +353,11 @@ async function wait(seconds) {
await fs.mkdir(paths.dirname(paths.join("/renders", filename)), {recursive:true}) await fs.mkdir(paths.dirname(paths.join("/renders", filename)), {recursive:true})
await fs.writeFile(paths.join("/renders", filename), Buffer.from(typeof rendered === "object" ? JSON.stringify(rendered) : `${rendered}`)) await fs.writeFile(paths.join("/renders", filename), Buffer.from(typeof rendered === "object" ? JSON.stringify(rendered) : `${rendered}`))
info(`Save to /metrics_renders/${filename}`, "ok") info(`Save to /metrics_renders/${filename}`, "ok")
info("Output action", _action)
} }
//No output action apart from file on runner //No output action apart from file on runner
if (_output === "none") { if (_action === "none") {
info.break() info.break()
console.log("Success, thanks for using metrics!") console.log("Success, thanks for using metrics!")
process.exit(0) process.exit(0)