Skip to content

Commit f519e05

Browse files
committed
wip
1 parent 30f78b8 commit f519e05

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/publish-pypi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ jobs:
2525
# Ensure the version in pyproject.toml is equivalent to the latest git tag
2626
# Read version from pyproject.toml
2727
PACKAGE_VERSION=$(python -c "import tomllib; f = open('pyproject.toml', 'rb'); data = tomllib.load(f); f.close(); print(data['project']['version'])")
28-
# Remove leading 'v' if present
29-
PACKAGE_VERSION=${PACKAGE_VERSION#v}
3028
echo "Package version: $PACKAGE_VERSION"
3129
3230
# Go to github releases to get latest tag
3331
LATEST_TAG=$(curl -s https://api.github.com/repos/httpdss/structkit/releases/latest | grep 'tag_name' | cut -d\" -f4)
32+
# Remove leading 'v' if present
33+
LATEST_TAG=${LATEST_TAG#v}
3434
echo "Latest tag: $LATEST_TAG"
3535
3636
if [ "$PACKAGE_VERSION" != "$LATEST_TAG" ]; then

0 commit comments

Comments
 (0)