feat(plugins/core): add debug_print option
This commit is contained in:
4
action.yml
generated
4
action.yml
generated
@@ -195,6 +195,10 @@ inputs:
|
|||||||
description: Debug flags
|
description: Debug flags
|
||||||
default: <default-value>
|
default: <default-value>
|
||||||
|
|
||||||
|
debug_print:
|
||||||
|
description: Print output in console
|
||||||
|
default: <default-value>
|
||||||
|
|
||||||
dryrun:
|
dryrun:
|
||||||
description: Dry-run
|
description: Dry-run
|
||||||
default: <default-value>
|
default: <default-value>
|
||||||
|
|||||||
@@ -109,6 +109,7 @@ async function retry(func, {retries = 1, delay = 0} = {}) {
|
|||||||
"markdown.cache":_markdown_cache,
|
"markdown.cache":_markdown_cache,
|
||||||
debug,
|
debug,
|
||||||
"debug.flags":dflags,
|
"debug.flags":dflags,
|
||||||
|
"debug.print":dprint,
|
||||||
"use.mocked.data":mocked,
|
"use.mocked.data":mocked,
|
||||||
dryrun,
|
dryrun,
|
||||||
"plugins.errors.fatal":die,
|
"plugins.errors.fatal":die,
|
||||||
@@ -343,6 +344,13 @@ async function retry(func, {retries = 1, delay = 0} = {}) {
|
|||||||
throw new Error("Could not render metrics")
|
throw new Error("Could not render metrics")
|
||||||
info("Status", "complete")
|
info("Status", "complete")
|
||||||
|
|
||||||
|
//Debug print
|
||||||
|
if (dprint) {
|
||||||
|
info.break()
|
||||||
|
info.section("Debug print")
|
||||||
|
console.log(rendered)
|
||||||
|
}
|
||||||
|
|
||||||
//Output condition
|
//Output condition
|
||||||
info.break()
|
info.break()
|
||||||
info.section("Saving")
|
info.section("Saving")
|
||||||
|
|||||||
@@ -420,6 +420,13 @@ inputs:
|
|||||||
testing: yes
|
testing: yes
|
||||||
preset: no
|
preset: no
|
||||||
|
|
||||||
|
debug_print:
|
||||||
|
description: Print output in console
|
||||||
|
type: boolean
|
||||||
|
default: no
|
||||||
|
testing: yes
|
||||||
|
preset: no
|
||||||
|
|
||||||
dryrun:
|
dryrun:
|
||||||
description: |
|
description: |
|
||||||
Dry-run
|
Dry-run
|
||||||
|
|||||||
Reference in New Issue
Block a user