Add new plugins params to action

This commit is contained in:
lowlighter
2020-10-20 22:14:33 +02:00
parent d297483ce2
commit 516d3abc66
2 changed files with 3 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@@ -70,6 +70,8 @@
pagespeed:{enabled:bool(core.getInput("plugin_pagespeed"))}, pagespeed:{enabled:bool(core.getInput("plugin_pagespeed"))},
habits:{enabled:bool(core.getInput("plugin_habits"))}, habits:{enabled:bool(core.getInput("plugin_habits"))},
selfskip:{enabled:bool(core.getInput("plugin_selfskip"))}, selfskip:{enabled:bool(core.getInput("plugin_selfskip"))},
languages:{enabled:bool(core.getInput("plugin_languages"))},
followup:{enabled:bool(core.getInput("plugin_followup"))},
} }
const q = Object.fromEntries(Object.entries(plugins).filter(([key, plugin]) => plugin.enabled).map(([key]) => [key, true])) const q = Object.fromEntries(Object.entries(plugins).filter(([key, plugin]) => plugin.enabled).map(([key]) => [key, true]))
console.log(`Plugins enabled | ${Object.entries(plugins).filter(([key, plugin]) => plugin.enabled).map(([key]) => key).join(", ")}`) console.log(`Plugins enabled | ${Object.entries(plugins).filter(([key, plugin]) => plugin.enabled).map(([key]) => key).join(", ")}`)