fix(app/metrics): action.yml removing default token value [skip ci]
This commit is contained in:
6
action.yml
generated
6
action.yml
generated
@@ -55,7 +55,7 @@ inputs:
|
|||||||
|
|
||||||
committer_token:
|
committer_token:
|
||||||
description: GitHub Token used to commit metrics
|
description: GitHub Token used to commit metrics
|
||||||
default: <default-value>
|
default: ${{ github.token }}
|
||||||
|
|
||||||
committer_branch:
|
committer_branch:
|
||||||
description: Target branch
|
description: Target branch
|
||||||
@@ -485,7 +485,7 @@ inputs:
|
|||||||
|
|
||||||
plugin_stargazers_charts_type:
|
plugin_stargazers_charts_type:
|
||||||
description: Charts display type
|
description: Charts display type
|
||||||
default: null
|
default: <default-value>
|
||||||
|
|
||||||
# ====================================================================================
|
# ====================================================================================
|
||||||
# 🗂️ Active projects
|
# 🗂️ Active projects
|
||||||
@@ -989,7 +989,7 @@ inputs:
|
|||||||
|
|
||||||
plugin_fortune:
|
plugin_fortune:
|
||||||
description: Enable fortune plugin
|
description: Enable fortune plugin
|
||||||
default: no
|
default: <default-value>
|
||||||
|
|
||||||
# ====================================================================================
|
# ====================================================================================
|
||||||
# 💉 Nightscout
|
# 💉 Nightscout
|
||||||
|
|||||||
@@ -228,7 +228,7 @@ metadata.plugin = async function({__plugins, __templates, name, logger}) {
|
|||||||
key,
|
key,
|
||||||
{
|
{
|
||||||
comment:comments[key] ?? `# ${value.description}`,
|
comment:comments[key] ?? `# ${value.description}`,
|
||||||
descriptor:yaml.dump({[key]:Object.fromEntries(Object.entries(value).filter(([key]) => ["description", "default", "required"].includes(key)).map(([k, v]) => k === "description" ? [k, v.split("\n")[0]] : k === "default" ? [k, "<default-value>"] : [k, v]))}, {quotingType:'"', noCompatMode:true}),
|
descriptor:yaml.dump({[key]:Object.fromEntries(Object.entries(value).filter(([key]) => ["description", "default", "required"].includes(key)).map(([k, v]) => k === "description" ? [k, v.split("\n")[0]] : k === "default" ? [k, /^\$\{\{[\s\S]+\}\}$/.test(v) ? v : "<default-value>"] : [k, v]))}, {quotingType:'"', noCompatMode:true}),
|
||||||
},
|
},
|
||||||
]),
|
]),
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user