cookiecutter-hypermodern-python icon indicating copy to clipboard operation
cookiecutter-hypermodern-python copied to clipboard

Use cookiecutter _copy_without_render for github actions yaml files.

Open DonalChilde opened this issue 2 years ago • 1 comments

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 avatar Dec 23 '22 13:12 DonalChilde

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

DonalChilde avatar Dec 23 '22 14:12 DonalChilde