Skip to content

Commit 8ff021d

Browse files
committed
fix(template-ci): escape variables
1 parent bea6b98 commit 8ff021d

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

{{cookiecutter.project_slug}}/.github/workflows/dependencies.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ jobs:
2727
uses: actions/cache@v2
2828
with:
2929
path: ~/.cache/pip
30-
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }}
30+
key: {% raw %}${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }}{% endraw %}
3131
restore-keys: |
32-
${{ runner.os }}-pip-
32+
{% raw %}${{ runner.os }}-pip-{% endraw %}
3333
3434
- name: Install dependencies
3535
run: make install
@@ -54,5 +54,5 @@ jobs:
5454
- name: Push changes
5555
uses: ad-m/github-push-action@master
5656
with:
57-
github_token: ${{ secrets.GITHUB_TOKEN }}
58-
branch: ${{ github.ref }})
57+
github_token: {% raw %}${{ secrets.GITHUB_TOKEN }}{% endraw %}
58+
branch: {% raw %}${{ github.ref }}{% endraw %}

{{cookiecutter.project_slug}}/.github/workflows/main.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
push:
66

77
concurrency:
8-
group: main-${{ github.head_ref }}
8+
group: {% raw %}main-${{ github.head_ref }}{% endraw %}
99
cancel-in-progress: true
1010

1111
jobs:
@@ -30,9 +30,9 @@ jobs:
3030
uses: actions/cache@v2
3131
with:
3232
path: ~/.cache/pip
33-
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }}
33+
key: {% raw %}${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }}{% endraw %}
3434
restore-keys: |
35-
${{ runner.os }}-pip-
35+
{% raw %}${{ runner.os }}-pip-{% endraw %}
3636
3737
- name: Install dependencies
3838
run: make install
@@ -51,7 +51,7 @@ jobs:
5151
if: github.ref == 'refs/heads/main'
5252
uses: commitizen-tools/commitizen-action@0.10.0
5353
with:
54-
github_token: ${{ secrets.GITHUB_TOKEN }}
54+
github_token: {% raw %}${{ secrets.GITHUB_TOKEN }}{% endraw %}
5555
changelog_increment_filename: body.md
5656
branch: main
5757
extra_requirements: typing-extensions
@@ -61,7 +61,7 @@ jobs:
6161
uses: softprops/action-gh-release@v1
6262
with:
6363
body_path: body.md
64-
tag_name: ${{ env.REVISION }}
64+
tag_name: {% raw %}${{ env.REVISION }}{% endraw %}
6565

6666
# Deploy docs
6767
- name: Build docs
@@ -72,5 +72,5 @@ jobs:
7272
if: github.ref == 'refs/heads/main'
7373
uses: peaceiris/actions-gh-pages@v3
7474
with:
75-
github_token: ${{ secrets.GITHUB_TOKEN }}
75+
github_token: {% raw %}${{ secrets.GITHUB_TOKEN }}{% endraw %}
7676
publish_dir: ./docs/site

0 commit comments

Comments
 (0)