From 0b8b0497b09df12175505c368916104f21c5c078 Mon Sep 17 00:00:00 2001 From: Vladimir Vagaytsev <10628074+vvagaytsev@users.noreply.github.com> Date: Thu, 29 Aug 2024 18:13:31 +0200 Subject: [PATCH] fix(template): keep action variables when resolving disabled flag (#6406) --- core/src/garden.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/src/garden.ts b/core/src/garden.ts index 171f102433..1dc8da215d 100644 --- a/core/src/garden.ts +++ b/core/src/garden.ts @@ -1522,10 +1522,16 @@ export class Garden { } const context = new TemplatableConfigContext(this, config) + // Inject action's variables + context.variables = context.var = { + ...context.variables, + ...config.variables, + } return resolveTemplateString({ string: disabledFlag, context, + contextOpts: { allowPartial: false }, }) }