From 6f9099e224a6b65c2312cce101df15bdfa223cc4 Mon Sep 17 00:00:00 2001 From: Jesse Bannon Date: Wed, 22 Feb 2023 15:14:23 -0800 Subject: [PATCH] \\ --- .github/workflows/release.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index f2bb30bc..6e1d63ab 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -51,7 +51,7 @@ jobs: - uses: actions/checkout@v3 - name: Write version to init file run: | - echo "__pypi_version__ = \"${{ env.PYPI_VERSION }}\"\n__local_version__ = \"${{ env.LOCAL_VERSION }}\"" > src/ytdl_sub/__init__.py + echo "__pypi_version__ = \\"${{ env.PYPI_VERSION }}\\"\\n__local_version__ = \\"${{ env.LOCAL_VERSION }}\\"" > src/ytdl_sub/__init__.py - uses: actions/setup-python@v4 with: python-version: '3.10' @@ -76,9 +76,9 @@ jobs: arch: [ "aarch64" ] steps: - uses: actions/checkout@v3 - - name: Write to init file + - name: Write version to init file run: | - echo "__pypi_version__ = \"${{ env.PYPI_VERSION }}\"\n__local_version__ = \"${{ env.LOCAL_VERSION }}\"" > src/ytdl_sub/__init__.py + echo "__pypi_version__ = \\"${{ env.PYPI_VERSION }}\\"\\n__local_version__ = \\"${{ env.LOCAL_VERSION }}\\"" > src/ytdl_sub/__init__.py - uses: uraimo/run-on-arch-action@v2 name: Run commands id: runcmd @@ -114,9 +114,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Write to init file + - name: Write version to init file run: | - echo "__pypi_version__ = \"${{ env.PYPI_VERSION }}\"\n__local_version__ = \"${{ env.LOCAL_VERSION }}\"" > src/ytdl_sub/__init__.py + echo "__pypi_version__ = \\"${{ env.PYPI_VERSION }}\\"\\n__local_version__ = \\"${{ env.LOCAL_VERSION }}\\"" > src/ytdl_sub/__init__.py - name: Create Release if: ${{ github.ref == 'refs/heads/master' }} @@ -144,9 +144,9 @@ jobs: with: fetch-depth: 0 # Needed for correct commit count. TODO: define once using GH actions ref: master - - name: Write to init file + - name: Write version to init file run: | - echo "__pypi_version__ = \"${{ env.PYPI_VERSION }}\"\n__local_version__ = \"${{ env.LOCAL_VERSION }}\"" > src/ytdl_sub/__init__.py + echo "__pypi_version__ = \\"${{ env.PYPI_VERSION }}\\"\\n__local_version__ = \\"${{ env.LOCAL_VERSION }}\\"" > src/ytdl_sub/__init__.py - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v3 with: