From 9e14975230ec249987bb519ee4fa4a8f58645453 Mon Sep 17 00:00:00 2001 From: Eduard Chumak <71296844+echumak-sift@users.noreply.github.com> Date: Mon, 5 May 2025 14:53:43 -0700 Subject: [PATCH] Update publishing2PyPI.yml Fixed code that parses version --- .github/workflows/publishing2PyPI.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publishing2PyPI.yml b/.github/workflows/publishing2PyPI.yml index 810a8f4..a8ea16b 100644 --- a/.github/workflows/publishing2PyPI.yml +++ b/.github/workflows/publishing2PyPI.yml @@ -15,7 +15,7 @@ jobs: - name: Get package version run: | VERSION=NOT_SET - VERSION=$(cat ./sift/version.py | grep -E -i '^VERSION.*' | cut -d'=' -f2 | cut -d\' -f2) + VERSION=$(cat ./sift/version.py | grep -E -i '^VERSION.*' | cut -d'=' -f2 | cut -d\" -f2) [[ $VERSION == "NOT_SET" ]] && echo "Version in version.py NOT_SET" && exit 1 echo "curr_version=$(echo $VERSION)" >> $GITHUB_ENV - name: Compare package version and Release tag