----------------------
Short answer: not directly.
- Garden supports varfiles (YAML/JSON/dotenv) at project and action/module level, but the docs only describe loading them from fixed paths configured in project or action config; there’s no documented mechanism to produce a varfile at runtime in one task and have Garden automatically reload and use it in another. [[Project varfile](
); [Action varfiles (edge)](
)]
- You can pass values between tasks via runtime outputs (template keys under runtime.*), but those are for templating within the same run and aren’t described as a way to create or switch varfiles dynamically. [[Runtime outputs](
)]
Given the docs, a supported pattern would be:
- Use runtime outputs to pass computed values directly to dependent steps/tasks within the same run, instead of writing a varfile. [[Runtime outputs](
)]
- Or, predefine the varfile path(s) in config and write your script to update the file before subsequent commands in the same workflow, but note the docs don’t guarantee Garden will pick up mid-run changes or support generating new paths dynamically. [[Project varfile](
); [Workflows](
)]
If you need stronger guarantees for dynamic config, the knowledge sources don’t provide an explicit, supported method.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------