From 0b6deeb9518a3a7f6f0fbadac0e12a95c78aca62 Mon Sep 17 00:00:00 2001 From: DevilXD <4180725+DevilXD@users.noreply.github.com> Date: Fri, 19 Jan 2024 19:27:16 +0100 Subject: [PATCH] Fix missing quotes around variables; set up Python for AppImage too --- .github/workflows/ci.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d075284..681b41b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,10 +30,11 @@ jobs: -Replace '^__version__\s*=\s*"[^"]+', "`$0.${{ steps.vars.outputs.sha_short }}" |` Out-File version.py + # Ensure Python version - name: Set up Python uses: actions/setup-python@v4 with: - python-version: $PYTHON_VERSION + python-version: "$PYTHON_VERSION" - name: Set up Python virtual environment run: | @@ -97,7 +98,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: $PYTHON_VERSION + python-version: "$PYTHON_VERSION" - name: Install system dependencies run: | @@ -167,6 +168,12 @@ jobs: echo "app_version=$(python3 -c 'from version import __version__ as v; print(v)')" >> "${GITHUB_OUTPUT}" echo "sha_short=$(git rev-parse --short HEAD)" >> "${GITHUB_OUTPUT}" + # Ensure Python version + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "$PYTHON_VERSION" + - name: Append git revision to project version run: | sed -ri "s/^__version__\s*=\s*\"[^\"]+/\0.${{ steps.vars.outputs.sha_short }}/" version.py