fix: markdown tests in ci
This commit is contained in:
3
.github/scripts/build.mjs
vendored
3
.github/scripts/build.mjs
vendored
@@ -173,6 +173,9 @@ function testcase(name, env, args) {
|
||||
result.if = "${{ success() || failure() }}"
|
||||
result.uses = "lowlighter/metrics@master"
|
||||
Object.assign(result.with, { plugins_errors_fatal: "yes", output_action: "none", delay: 5 })
|
||||
|
||||
if ((context.with?.output_action)&&(context.with?.committer_branch === "examples"))
|
||||
Object.assign(result.with, { output_action:context.with.output_action, committer_branch:"examples" })
|
||||
}
|
||||
|
||||
if (env === "test") {
|
||||
|
||||
2
.github/scripts/quickstart/index.mjs
vendored
2
.github/scripts/quickstart/index.mjs
vendored
@@ -18,7 +18,7 @@ if (!["plugin", "template"].includes(mode))
|
||||
throw new Error(`Unsupported mode ${mode}`)
|
||||
|
||||
//Check if target directory already exists
|
||||
const target = paths.join(__metrics, `source/${mode}s`, name)
|
||||
const target = paths.join(__metrics, `source/${{plugin:"plugins/community", template:"templates"}[mode]}`, name)
|
||||
if (fs.existsSync(target))
|
||||
throw new Error(`A ${mode} named ${name} already exists!`)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user