We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30f78b8 commit f519e05Copy full SHA for f519e05
1 file changed
.github/workflows/publish-pypi.yml
@@ -25,12 +25,12 @@ jobs:
25
# Ensure the version in pyproject.toml is equivalent to the latest git tag
26
# Read version from pyproject.toml
27
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}
30
echo "Package version: $PACKAGE_VERSION"
31
32
# Go to github releases to get latest tag
33
LATEST_TAG=$(curl -s https://api.github.com/repos/httpdss/structkit/releases/latest | grep 'tag_name' | cut -d\" -f4)
+ # Remove leading 'v' if present
+ LATEST_TAG=${LATEST_TAG#v}
34
echo "Latest tag: $LATEST_TAG"
35
36
if [ "$PACKAGE_VERSION" != "$LATEST_TAG" ]; then
0 commit comments