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

Allow with to define any value type #207

Merged
merged 1 commit into from
Aug 27, 2024
Merged

Allow with to define any value type #207

merged 1 commit into from
Aug 27, 2024

Conversation

kenodegard
Copy link
Contributor

Description

The template-files supports a with key in the config file. This with key is the context used to template the given file. Previously the with context only allowed string values. Let's expand it to support any other type.

Example config.yml:

some/repo:
  - src: templates/template.yml
    dst: ...
    with:
      conditional: true

Example template.yml:

{% if conditional %}
- conditional value
{% endif %}

@kenodegard kenodegard requested a review from a team as a code owner August 21, 2024 15:40
@conda-bot conda-bot added the cla-signed [bot] added once the contributor has signed the CLA label Aug 21, 2024
@jezdez jezdez merged commit afa0709 into main Aug 27, 2024
4 checks passed
@jezdez jezdez deleted the allow-any-type-in-with branch August 27, 2024 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed [bot] added once the contributor has signed the CLA
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants