We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 759da3e commit 80f0ec8Copy full SHA for 80f0ec8
.github/workflows/publish-to-pypi.yml
@@ -58,15 +58,7 @@ jobs:
58
TAG_VERSION=${TAG_VERSION#v}
59
60
# Extract version from pyproject.toml [tool.poetry] section
61
- PACKAGE_VERSION=$(python << 'EOF'
62
-import tomllib
63
-
64
-with open('pyproject.toml', 'rb') as f:
65
- data = tomllib.load(f)
66
- version = data['tool']['poetry']['version']
67
- print(version)
68
-EOF
69
- )
+ PACKAGE_VERSION=$(python -c "import tomllib; data=tomllib.load(open('pyproject.toml','rb')); print(data['tool']['poetry']['version'])")
70
echo "Release tag version: $TAG_VERSION"
71
echo "Package version: $PACKAGE_VERSION"
72
0 commit comments