Skip to content

Commit 29c5dcc

Browse files
committed
🐛 fix: proj_main template syntax
1 parent 386207d commit 29c5dcc

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

proj_main.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ jobs:
2828
echo "branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT
2929
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
3030
31-
- name: Setup Python ${{ matrix.python }}
31+
- name: Setup Python ${% templatetag openvariable %} matrix.python {% templatetag closevariable %}
3232
uses: actions/setup-python@v5
3333
with:
34-
python-version: ${{ matrix.python }}
34+
python-version: ${% templatetag openvariable %} matrix.python {% templatetag closevariable %}
3535

3636
- name: Install pnpm
3737
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
@@ -44,35 +44,35 @@ jobs:
4444
which pnpm
4545
pnpm --version
4646
47-
- name: Setup Node ${{ matrix.node }}
47+
- name: Setup Node ${% templatetag openvariable %} matrix.node {% templatetag closevariable %}
4848
uses: actions/setup-node@v4
4949
with:
50-
node-version: ${{ matrix.node }}
50+
node-version: ${% templatetag openvariable %} matrix.node {% templatetag closevariable %}
5151
cache: "pnpm"
52-
cache-dependency-path: **/pnpm-lock.yaml # ← ensures cache is invalidated when lockfile changes
52+
cache-dependency-path: {% raw %}**/pnpm-lock.yaml{% endraw %} # ← ensures cache is invalidated when lockfile changes
5353

5454
- name: Cache pnpm store
5555
uses: actions/cache@v4
5656
env:
5757
cache_name: pnpm-store-cache
5858
with:
5959
path: ~/.pnpm-store
60-
key: build-${{ env.cache_name }}-${{ steps.git.outputs.branch }}-${{ steps.git.outputs.sha_short }}-${{ hashFiles('**/pnpm-lock.yaml') }}
60+
key: build-${% templatetag openvariable %} env.cache_name {% templatetag closevariable %}-${% templatetag openvariable %} steps.git.outputs.branch {% templatetag closevariable %}-${% templatetag openvariable %} steps.git.outputs.sha_short {% templatetag closevariable %}-${% templatetag openvariable %} hashFiles('**/pnpm-lock.yaml') }}{% templatetag closevariable %}
6161
restore-keys: |
62-
build-${{ env.cache_name }}-${{ steps.git.outputs.branch }}-${{ steps.git.outputs.sha_short }}-
63-
build-${{ env.cache_name }}-${{ steps.git.outputs.branch }}-
64-
build-${{ env.cache_name }}-
62+
build-${% templatetag openvariable %} env.cache_name {% templatetag closevariable %}-${% templatetag openvariable %} steps.git.outputs.branch {% templatetag closevariable %}-${% templatetag openvariable %} steps.git.outputs.sha_short {% templatetag closevariable %}
63+
build-${% templatetag openvariable %} env.cache_name {% templatetag closevariable %}-${% templatetag openvariable %} steps.git.outputs.branch {% templatetag closevariable %}
64+
build-${% templatetag openvariable %} env.cache_name {% templatetag closevariable %}
6565
6666
- name: Cache pip
6767
uses: actions/cache@v4
6868
env:
6969
cache_name: pip-cache
7070
with:
7171
path: ~/.cache/pip
72-
key: build-${{ env.cache_name }}-${{ steps.git.outputs.branch }}-${{ steps.git.outputs.sha_short }}
72+
key: build-${% templatetag openvariable %} env.cache_name }}-${% templatetag openvariable %} steps.git.outputs.branch }}-${% templatetag openvariable %} steps.git.outputs.sha_short {% templatetag closevariable %}
7373
restore-keys: |
74-
build-${{ env.cache_name }}-${{ steps.git.outputs.branch }}
75-
build-${{ env.cache_name }}
74+
build-${% templatetag openvariable %} env.cache_name {% templatetag closevariable %}-${{ steps.git.outputs.branch {% templatetag closevariable %}
75+
build-${% templatetag openvariable %} env.cache_name {% templatetag closevariable %}
7676
7777
- run: python -m pip install --upgrade pip
7878
shell: bash
@@ -113,7 +113,7 @@ jobs:
113113
run: poetry run ruff check ./backend/
114114
env:
115115
DJANGO_SETTINGS_MODULE: "{{ project_name }}.settings.local_base"
116-
SECRET_KEY: ${{ steps.secret_id_generator.outputs.SECRET_KEY }}
116+
SECRET_KEY: ${% templatetag openvariable %} steps.secret_id_generator.outputs.SECRET_KEY {% templatetag closevariable %}
117117
DATABASE_URL: "sqlite:///"
118118
ALLOWED_HOSTS: ".example.org"
119119
SENDGRID_USERNAME: "test"
@@ -132,7 +132,7 @@ jobs:
132132
working-directory: backend
133133
env:
134134
DJANGO_SETTINGS_MODULE: "{{ project_name }}.settings.production"
135-
SECRET_KEY: ${{ steps.secret_id_generator.outputs.SECRET_KEY }}
135+
SECRET_KEY: ${% templatetag openvariable %} steps.secret_id_generator.outputs.SECRET_KEY {% templatetag closevariable %}
136136
DATABASE_URL: "sqlite:///"
137137
ALLOWED_HOSTS: ".example.org"
138138
SENDGRID_USERNAME: "test"
@@ -146,7 +146,7 @@ jobs:
146146
working-directory: backend
147147
env:
148148
DJANGO_SETTINGS_MODULE: "{{ project_name }}.settings.production"
149-
SECRET_KEY: ${{ steps.secret_id_generator.outputs.SECRET_KEY }}
149+
SECRET_KEY: ${% templatetag openvariable %} steps.secret_id_generator.outputs.SECRET_KEY {% templatetag closevariable %}
150150
DATABASE_URL: "sqlite:///"
151151
ALLOWED_HOSTS: ".example.org"
152152
SENDGRID_USERNAME: "test"

0 commit comments

Comments
 (0)