From f1ef2ce94d17001508c29e7c52e262ef401eaa40 Mon Sep 17 00:00:00 2001 From: Eric Hibbs Date: Mon, 9 Dec 2024 19:13:50 -0800 Subject: [PATCH] Fixed version check, broken by double-quotes --- .github/workflows/version-check.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/version-check.yml b/.github/workflows/version-check.yml index 035ac6f..23c11cc 100644 --- a/.github/workflows/version-check.yml +++ b/.github/workflows/version-check.yml @@ -19,12 +19,12 @@ jobs: id: version_check run: | # Get version from current PR - PR_VERSION=$(grep -o "__version__.*" socketsync/__init__.py | awk '{print $3}' | tr -d "'") + PR_VERSION=$(grep -o "__version__.*" socketsync/__init__.py | awk '{print $3}' | tr -d "'\"") echo "PR_VERSION=$PR_VERSION" >> $GITHUB_ENV # Get version from main branch git checkout origin/main - MAIN_VERSION=$(grep -o "__version__.*" socketsync/__init__.py | awk '{print $3}' | tr -d "'") + MAIN_VERSION=$(grep -o "__version__.*" socketsync/__init__.py | awk '{print $3}' | tr -d "'\"") echo "MAIN_VERSION=$MAIN_VERSION" >> $GITHUB_ENV # Compare versions using Python