Skip to content

Commit

Permalink
cookiecutter(ci): Use raw to avoid Jinja parsing error
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Nov 27, 2024
1 parent e134e8a commit 8451dfa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CI
on: [push, pull_request]
jobs:
build:
if: ${{ github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository }}
if: ${{ "{{" }} github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: CI
on: [push, pull_request]
jobs:
build:
{%- raw %}
if: ${{ github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository }}
{%- endraw %}
{%- if cookiecutter.os_independent == "y" %}
{%- raw %}
runs-on: ${{ matrix.os }}
Expand Down

0 comments on commit 8451dfa

Please sign in to comment.