Skip to content

Commit 54ed5bc

Browse files
committed
fix: conflict between gha and cookiecutter syntax
1 parent 227dc05 commit 54ed5bc

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

{{cookiecutter.package_name}}/.github/actions/setup/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ inputs:
1313
runs:
1414
using: 'composite'
1515
steps:
16-
- name: Set up Python ${{ inputs.python-version }}
16+
- name: Set up Python {% raw %}${{ inputs.python-version }}{% endraw %}
1717
uses: actions/setup-python@v5
1818
with:
19-
python-version: ${{ inputs.python-version }}
19+
python-version: {% raw %}${{ inputs.python-version }}{% endraw %}
2020

2121
- name: Install dependencies
2222
shell: bash
2323
run: |
2424
python -m pip install --upgrade pip
25-
pip install -e ".[${{ inputs.dependencies }}]"
25+
pip install -e ".[{% raw %}${{ inputs.dependencies }}{% endraw %}]"

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Setup Python and install dependencies
2222
uses: ./.github/actions/setup
2323
with:
24-
python-version: ${{ env.PYTHON_VERSION }}
24+
python-version: {% raw %}${{ env.PYTHON_VERSION }}{% endraw %}
2525
dependencies: dev
2626

2727
- name: Run tests
@@ -33,7 +33,7 @@ jobs:
3333

3434
# Do not run on git tag (i.e. releases).
3535
# Only runs if tests pass.
36-
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
36+
if: {% raw %}${{ !startsWith(github.ref, 'refs/tags/') }}{% endraw %}
3737
needs: [test]
3838

3939
steps:
@@ -43,7 +43,7 @@ jobs:
4343
- name: Setup Python and install dependencies
4444
uses: ./.github/actions/setup
4545
with:
46-
python-version: ${{ env.PYTHON_VERSION }}
46+
python-version: {% raw %}${{ env.PYTHON_VERSION }}{% endraw %}
4747
dependencies: docs
4848

4949
- name: Build documentation
@@ -59,7 +59,7 @@ jobs:
5959
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
6060
uses: peaceiris/actions-gh-pages@v4
6161
with:
62-
github_token: ${{ secrets.GITHUB_TOKEN }}
62+
github_token: {% raw %}${{ secrets.GITHUB_TOKEN }}{% endraw %}
6363
publish_dir: ./site
6464
{% endif %}
6565

@@ -82,7 +82,7 @@ jobs:
8282
- name: Setup Python and install dependencies
8383
uses: ./.github/actions/setup
8484
with:
85-
python-version: ${{ env.PYTHON_VERSION }}
85+
python-version: {% raw %}${{ env.PYTHON_VERSION }}{% endraw %}
8686
dependencies: build
8787

8888
- name: Build package

0 commit comments

Comments
 (0)