escape strings in workflow

This commit is contained in:
Jonathan Wren 2021-07-17 12:31:41 -07:00
parent a79a3cb723
commit 4607d41ebc

View file

@ -82,15 +82,14 @@ jobs:
poetry version "$JRNL_VERSION" poetry version "$JRNL_VERSION"
{ {
echo "# This file is managed automatically by the GitHub release flow" echo "# This file is managed automatically by the GitHub release flow"
echo "" echo
echo "import sys" echo "import sys"
echo "" echo
echo "__version__ = \"$JRNL_VERSION\"" echo "__version__ = \"$JRNL_VERSION\""
echo "" echo
echo "# this makes the version available at `jrnl.__version__` without requiring a" echo '# this makes the version available at `jrnl.__version__` without requiring a'
echo "# `__init__.py` file in the *jrnl* root directory!" echo '# `__init__.py` file in the *jrnl* root directory!'
echo "sys.modules[\"jrnl.__version__\"] = __version__" echo 'sys.modules["jrnl.__version__"] = __version__'
echo ""
} > jrnl/__version__.py } > jrnl/__version__.py
- name: Commit updated files - name: Commit updated files