Skip to content

Commit 37f1dcf

Browse files
committed
Escaping in template
Fixes Error: 'github' is undefined #12
1 parent 49ee0cf commit 37f1dcf

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

{{ cookiecutter.package_name }}/.github/workflows/release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ jobs:
3030
- name: Build packages
3131
run: poetry build
3232
- name: Publish to test PyPI
33-
if: ${{ github.event_name == 'push' }}
33+
if: ${{ '${{' }} github.event_name == 'push' {{ '}}' }}
3434
uses: pypa/gh-action-pypi-publish@release/v1
3535
with:
3636
repository-url: https://test.pypi.org/legacy/
3737
- name: Publish to PyPI
38-
if: ${{ github.event_name == 'release' }}
38+
if: ${{ '${{' }} github.event_name == 'release' {{ '}}' }}
3939
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)