Skip to content

Commit 221dc2e

Browse files
committed
Fixed tag check
1 parent 298315a commit 221dc2e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@ jobs:
5959
6060
# Extract version from pyproject.toml [tool.poetry] section
6161
PACKAGE_VERSION=$(python << 'EOF'
62+
import tomllib
6263

63-
import tomllib
64-
with open('pyproject.toml', 'rb') as f:
65-
data = tomllib.load(f)
66-
version = data['tool']['poetry']['version']
67-
print(version)
68-
EOF
64+
with open('pyproject.toml', 'rb') as f:
65+
data = tomllib.load(f)
66+
version = data['tool']['poetry']['version']
67+
print(version)
68+
EOF
6969
)
7070
echo "Release tag version: $TAG_VERSION"
7171
echo "Package version: $PACKAGE_VERSION"

0 commit comments

Comments
 (0)