pretalx / pretalx-plugin-cookiecutter

A cookiecutter for pretalx plugins
3 stars 2 forks source link

fix `{{ runner.os }}` being interpreted as jinja2 code #3

Closed Findus23 closed 3 years ago

Findus23 commented 3 years ago

This can be reproduced in an empty virtualenv:

➜  pip install cookiecutter
Collecting cookiecutter
  Using cached cookiecutter-1.7.3-py2.py3-none-any.whl (34 kB)
[...]
➜  cookiecutter https://github.com/pretalx/pretalx-plugin-cookiecutter
repo_name [pretalx-superplugin]: test
repo_url [GitHub repository URL]: test
module_name [pretalx_superplugin]: test
human_name [The pretalx super plugin]: test
author_name [Your name]: test
author_email [Your email]: test
year [Current year]: test
short_description [Short description]: test
Unable to create file '.github/workflows/style.yml'
Error message: 'runner' is undefined
Context: {
    "cookiecutter": {
        "_template": "https://github.com/pretalx/pretalx-plugin-cookiecutter",
        "author_email": "test",
        "author_name": "test",
        "human_name": "test",
        "module_name": "test",
        "repo_name": "test",
        "repo_url": "test",
        "short_description": "test",
        "year": "test"
    }
}