We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm getting a validation error when using local env vars in workflow steps, see repro below.
Create a workflow like this:
kind: Workflow name: run-tests steps: - name: run-tests skip: ${local.env.SKIP != ''} command: [test]
Run garden validate and observe the error:
garden validate
Error validating workflow: key .steps[0][skip] must be a boolean
This only seems to be an issue with local env vars so the following should work:
kind: Project variables: skip: ${local.env.SKIP} --- kind: Workflow name: run-tests steps: - name: run-tests skip: ${var.SKIP != ''} command: [test]
This was written in a hurry, @thsig feel free to elaborate.
garden version
The text was updated successfully, but these errors were encountered:
fix(workflows): error referencing undefined vars in workflow templates
cf48931
Fixes #2235
7591cb1
edvald
Successfully merging a pull request may close this issue.
Bug
Current Behavior
I'm getting a validation error when using local env vars in workflow steps, see repro below.
Reproducible example
Create a workflow like this:
Run
garden validate
and observe the error:Error validating workflow: key .steps[0][skip] must be a boolean
Workaround
This only seems to be an issue with local env vars so the following should work:
Suggested solution(s)
Additional context
This was written in a hurry, @thsig feel free to elaborate.
Your environment
garden version
The text was updated successfully, but these errors were encountered: