|
|
|
@ -29,8 +29,15 @@ async function run(config: object) {
|
|
|
|
|
|
|
|
|
|
for (const actionConfig of config.actions) {
|
|
|
|
|
|
|
|
|
|
let ActionClass
|
|
|
|
|
|
|
|
|
|
// resolve action class
|
|
|
|
|
const ActionClass = await import(resolveActionClass(actionConfig.class))
|
|
|
|
|
try {
|
|
|
|
|
ActionClass = await import(resolveActionClass(actionConfig.class))
|
|
|
|
|
} catch(error) {
|
|
|
|
|
logger(config.slug).error('runner / resolve action class / ' + error)
|
|
|
|
|
continue
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// options are exists, add to docket
|
|
|
|
|
if (actionConfig.hasOwnProperty('options')) {
|
|
|
|
|