Skip to content
New issue

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

Show how to parse params into stage cmd #3913

Merged
merged 5 commits into from
Sep 6, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions content/docs/command-reference/stage/add.md
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,15 @@ We use [ruamel.yaml](https://pypi.org/project/ruamel.yaml/) which supports YAML

</admon>

<admon type="tip">

You can also [use templating] to parse parameters directly from `params.yaml`
into the stage.

[use templating]: /doc/user-guide/project-structure/dvcyaml-files#templating

</admon>

DVC will keep an eye on these param values (same as with the regular dependency
files) and know that the stage should be reproduced if/when they change. See
`dvc params` for more details.