Skip to content

Commit bac189e

Browse files
committed
fix: 🐛 forgot to escape the workflow variables in Jinja
1 parent 8c444ac commit bac189e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

template/.github/workflows/build-website.yml.jinja

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,19 +64,19 @@ jobs:
6464

6565
{% if hosting_provider == 'netlify' -%}
6666
- name: Publish to Netlify (and render)
67-
if: ${{ inputs.hosting-provider == 'netlify' }}
67+
if: {{ "${{ inputs.hosting-provider == 'netlify' }}" }}
6868
uses: quarto-dev/quarto-actions/publish@8a96df13519ee81fd526f2dfca5962811136661b # v2.2.0
6969
with:
7070
target: netlify
71-
NETLIFY_AUTH_TOKEN: ${{ secrets.netlify-token }}
71+
NETLIFY_AUTH_TOKEN: {{ '${{ secrets.netlify-token }}' }}
7272

7373
{%- elif hosting_provider == 'gh-pages' -%}
7474
# NOTE: If Publishing to GitHub Pages, set the permissions correctly (see above).
7575
- name: Publish to GitHub Pages (and render)
76-
if: ${{ inputs.hosting-provider == 'gh-pages' }}
76+
if: {{ "${{ inputs.hosting-provider == 'gh-pages' }}" }}
7777
uses: quarto-dev/quarto-actions/publish@8a96df13519ee81fd526f2dfca5962811136661b # v2.2.0
7878
with:
7979
target: gh-pages
8080
env:
81-
GITHUB_TOKEN: ${{ secrets.github-token }}
81+
GITHUB_TOKEN: {{ '${{ secrets.github-token }}' }}
8282
{%- endif %}

0 commit comments

Comments
 (0)