When using cookiecutter on Tiers 2, 3, or 4, cookiecutter tries to replace the
needs variable within the scope ${{ }} in the Github Action script, but the
${{ }} will actually be interpolated at the Github Action level, not the Jinja
level, so that scope needs to be escaped by adding {% raw %}.
Solution
I added {% raw %} to the three Github Action scripts to escape the ${{ }}.
Result
Running cookiecutter on tiers 2-4 now exit cleanly without an error.
Fix Jinja template conflict with Github Action
Problem
When using cookiecutter on Tiers 2, 3, or 4, cookiecutter tries to replace the
needs
variable within the scope${{ }}
in the Github Action script, but the${{ }}
will actually be interpolated at the Github Action level, not the Jinja level, so that scope needs to be escaped by adding{% raw %}
.Solution
I added
{% raw %}
to the three Github Action scripts to escape the${{ }}
.Result
Running cookiecutter on tiers 2-4 now exit cleanly without an error.