fix: markdown tests in ci
This commit is contained in:
@@ -33,7 +33,7 @@ info.section = (left = "", right = " ") => info(`\x1b[36m${left}\x1b[0m`, right)
|
||||
info.group = ({metadata, name, inputs}) => {
|
||||
info.section(metadata.plugins[name]?.name?.match(/(?<section>[\w\s]+)/i)?.groups?.section?.trim(), " ")
|
||||
for (const [input, value] of Object.entries(inputs))
|
||||
info(metadata.plugins[name]?.inputs[input]?.description ?? input, value, {token:metadata.plugins[name]?.inputs[input]?.type === "token"})
|
||||
info(metadata.plugins[name]?.inputs[input]?.description?.split("\n")[0] ?? metadata.plugins[name]?.inputs[input]?.description ?? input, value, {token:metadata.plugins[name]?.inputs[input]?.type === "token"})
|
||||
}
|
||||
info.break = () => console.log("─".repeat(88))
|
||||
|
||||
|
||||
@@ -6,6 +6,10 @@
|
||||
markdown: metrics.markdown.template.md
|
||||
config_output: markdown
|
||||
token: ${{ secrets.METRICS_TOKEN }}
|
||||
prod:
|
||||
with:
|
||||
output_action: commit
|
||||
committer_branch: examples
|
||||
|
||||
- name: Example with plugins configuration for embed use
|
||||
uses: lowlighter/metrics@latest
|
||||
@@ -36,6 +40,10 @@
|
||||
plugin_isocalendar: yes
|
||||
plugin_languages: yes
|
||||
token: ${{ secrets.METRICS_TOKEN }}
|
||||
prod:
|
||||
with:
|
||||
output_action: commit
|
||||
committer_branch: examples
|
||||
|
||||
- name: Example (pdf output)
|
||||
uses: lowlighter/metrics@latest
|
||||
@@ -51,3 +59,7 @@
|
||||
config_twemoji: yes
|
||||
config_padding: 5%
|
||||
token: ${{ secrets.METRICS_TOKEN }}
|
||||
prod:
|
||||
with:
|
||||
output_action: commit
|
||||
committer_branch: examples
|
||||
Reference in New Issue
Block a user