From 7c3d059b4d36d4f79858997d8bfa5e8cdc46de0d Mon Sep 17 00:00:00 2001 From: Jay Qi Date: Sat, 27 Jan 2024 23:55:24 -0500 Subject: [PATCH] Fix release-cli workflow --- .github/workflows/release-cli.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-cli.yml b/.github/workflows/release-cli.yml index 2b8d2df..e1df743 100644 --- a/.github/workflows/release-cli.yml +++ b/.github/workflows/release-cli.yml @@ -1,4 +1,4 @@ -name: release +name: release-cli on: push: @@ -29,7 +29,7 @@ jobs: id: version run: | echo "Release tag: [${{ github.event.release.tag_name }}]" - PACKAGE_VERSION=$(hatch run rpzip --version) + PACKAGE_VERSION=$(hatch run python -c "import rpzip; print(rpzip.__version__)") echo "Package version: [$PACKAGE_VERSION]" [ ${{ github.event.release.tag_name }} == "v$PACKAGE_VERSION" ] || { exit 1; } echo "::set-output name=major_minor_version::v${PACKAGE_VERSION%.*}"