Skip to content

Commit 92b78de

Browse files
committed
Use a raw block for template with jinja-like content
GitHub actions use the syntax `${{ ... }}` to inject variables, and jinja, the template system behind cookicutter, use `{{ ... }}` so the GitHub syntax is interpretes as jinja variable, resulting in an error. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent 2891953 commit 92b78de

File tree

1 file changed

+2
-0
lines changed
  • cookiecutter/{{cookiecutter.github_repo_name}}/.github/workflows

1 file changed

+2
-0
lines changed

cookiecutter/{{cookiecutter.github_repo_name}}/.github/workflows/labeler.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{% raw -%}
12
name: Pull Request Labeler
23

34
on: [pull_request_target]
@@ -21,3 +22,4 @@ jobs:
2122
uses: actions/labeler@0776a679364a9a16110aac8d0f40f5e11009e327 # 4.0.4
2223
with:
2324
repo-token: "${{ secrets.GITHUB_TOKEN }}"
25+
{%- endraw %}

0 commit comments

Comments
 (0)