Skip to content

Commit

Permalink
refactor: narrow config type in ActionConfigContextParams
Browse files Browse the repository at this point in the history
It can never be `WorkflowConfig`.
  • Loading branch information
vvagaytsev committed Sep 17, 2024
1 parent 70db72c commit 317c0e3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/src/config/template-contexts/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import { ConfigContext, ErrorContext, ParentContext, schema, TemplateContext } f
import { exampleVersion, OutputConfigContext } from "./module.js"
import { TemplatableConfigContext } from "./project.js"
import { DOCS_BASE_URL } from "../../constants.js"
import type { WorkflowConfig } from "../workflow.js"
import { styles } from "../../logger/styles.js"

function mergeVariables({ garden, variables }: { garden: Garden; variables: DeepPrimitiveMap }): DeepPrimitiveMap {
Expand Down Expand Up @@ -64,7 +63,7 @@ class ActionConfigThisContext extends ConfigContext {

interface ActionConfigContextParams {
garden: Garden
config: ActionConfig | WorkflowConfig
config: ActionConfig
thisContextParams: ActionConfigThisContextParams
variables: DeepPrimitiveMap
}
Expand Down

0 comments on commit 317c0e3

Please sign in to comment.