Add new plugins params to action
This commit is contained in:
2
action/dist/index.js
vendored
2
action/dist/index.js
vendored
File diff suppressed because one or more lines are too long
@@ -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(", ")}`)
|
||||||
|
|||||||
Reference in New Issue
Block a user