fix: use grep instead of tomllib for version check in release workflow

tomllib is only available in Python 3.11+, but the release workflow
runs on Python 3.10. Replace with grep/sed which works everywhere.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
yusyus
2026-03-02 21:14:31 +03:00
parent 1254f0e1ac
commit 0ca271cdcb

View File

@@ -53,7 +53,7 @@ jobs:
run: | run: |
TAG_VERSION="${{ steps.get_version.outputs.VERSION }}" TAG_VERSION="${{ steps.get_version.outputs.VERSION }}"
PKG_VERSION=$(python -c "import skill_seekers; print(skill_seekers.__version__)") PKG_VERSION=$(python -c "import skill_seekers; print(skill_seekers.__version__)")
TOML_VERSION=$(python -c "import tomllib; print(tomllib.load(open('pyproject.toml','rb'))['project']['version'])") TOML_VERSION=$(grep -m1 '^version' pyproject.toml | sed 's/version *= *"\(.*\)"/\1/')
echo "Tag version: $TAG_VERSION" echo "Tag version: $TAG_VERSION"
echo "Package version: $PKG_VERSION" echo "Package version: $PKG_VERSION"
echo "TOML version: $TOML_VERSION" echo "TOML version: $TOML_VERSION"