Skip to content

Commit 80f0ec8

Browse files
committed
Fixed bug in workflow
1 parent 759da3e commit 80f0ec8

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

.github/workflows/publish-to-pypi.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,7 @@ jobs:
5858
TAG_VERSION=${TAG_VERSION#v}
5959
6060
# 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-
)
61+
PACKAGE_VERSION=$(python -c "import tomllib; data=tomllib.load(open('pyproject.toml','rb')); print(data['tool']['poetry']['version'])")
7062
echo "Release tag version: $TAG_VERSION"
7163
echo "Package version: $PACKAGE_VERSION"
7264

0 commit comments

Comments
 (0)