From 4607d41ebcdc8e0a03f7bbd62c97ecda7bd87717 Mon Sep 17 00:00:00 2001 From: Jonathan Wren Date: Sat, 17 Jul 2021 12:31:41 -0700 Subject: [PATCH] escape strings in workflow --- .github/workflows/release.yaml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e69b52f7..39683e0b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -82,15 +82,14 @@ jobs: poetry version "$JRNL_VERSION" { echo "# This file is managed automatically by the GitHub release flow" - echo "" + echo echo "import sys" - echo "" + echo echo "__version__ = \"$JRNL_VERSION\"" - echo "" - echo "# this makes the version available at `jrnl.__version__` without requiring a" - echo "# `__init__.py` file in the *jrnl* root directory!" - echo "sys.modules[\"jrnl.__version__\"] = __version__" - echo "" + echo + echo '# this makes the version available at `jrnl.__version__` without requiring a' + echo '# `__init__.py` file in the *jrnl* root directory!' + echo 'sys.modules["jrnl.__version__"] = __version__' } > jrnl/__version__.py - name: Commit updated files