cjolowicz / cookiecutter-hypermodern-python

Hypermodern Python Cookiecutter
http://cookiecutter-hypermodern-python.readthedocs.io/
MIT License
1.81k stars 235 forks source link

Use cookiecutter _copy_without_render for github actions yaml files. #1280

Open DonalChilde opened 1 year ago

DonalChilde commented 1 year ago

Maybe this has already been discussed and discarded, but it looks like using _copy_without_render in the cookiecutter.json for the github action yaml files could avoid a lot of confusing nested curly braces. It allows you to copy files, without sending them to jinja for rendering.

https://cookiecutter.readthedocs.io/en/2.1.1/advanced/copy_without_render.html

My cursory inspection of the yaml files did not find any that made use of cookiecutter values.

DonalChilde commented 1 year ago

Or, use the {% raw %} {% endraw %} tags to avoid jinja processing by cookiecutter