Skip to content

Commit

Permalink
Fix release-cli workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jayqi committed Jan 28, 2024
1 parent e426760 commit 7c3d059
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release-cli.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: release
name: release-cli

on:
push:
Expand Down Expand Up @@ -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%.*}"
Expand Down

0 comments on commit 7c3d059

Please sign in to comment.