Skip to content

Commit

Permalink
fix(template): keep action variables when resolving disabled flag (#6406
Browse files Browse the repository at this point in the history
)
  • Loading branch information
vvagaytsev authored Aug 29, 2024
1 parent 8df8015 commit 0b8b049
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/src/garden.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
})
}

Expand Down

0 comments on commit 0b8b049

Please sign in to comment.