diff --git a/packages/server/src/automations/actions.ts b/packages/server/src/automations/actions.ts index f35f96babe..bdbd9d509d 100644 --- a/packages/server/src/automations/actions.ts +++ b/packages/server/src/automations/actions.ts @@ -88,12 +88,10 @@ export const BUILTIN_ACTION_DEFINITIONS: Record< // the fact this isn't included in any definitions means it cannot be // ran at all if (env.SELF_HOSTED) { - const bash = require("./steps/bash") - // @ts-ignore - ACTION_IMPLS["EXECUTE_BASH"] = bash.run + ACTION_IMPLS["EXECUTE_BASH"] = automations.steps.bash.run // @ts-ignore - BUILTIN_ACTION_DEFINITIONS["EXECUTE_BASH"] = bash.definition + BUILTIN_ACTION_DEFINITIONS["EXECUTE_BASH"] = automations.steps.bash.definition if (env.isTest()) { BUILTIN_ACTION_DEFINITIONS["OPENAI"] = automations.steps.openai.definition