Skip to content

Commit 72ab3f0

Browse files
Fix uv version output in pypi-publish workflow
uv version outputs "project-name version" (e.g. "fastapi-gcp-tasks 0.1.1"), not just the version string. Use --short flag to get the bare version for comparison against the git tag. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 88c38b2 commit 72ab3f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/pypi-publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Validate version
2121
run: |
2222
TAG_VERSION=${GITHUB_REF#refs/tags/v}
23-
PYPROJECT_VERSION=$(uv version)
23+
PYPROJECT_VERSION=$(uv version --short)
2424
echo "Tag version: $TAG_VERSION"
2525
echo "Pyproject version: $PYPROJECT_VERSION"
2626
if [ "$TAG_VERSION" != "$PYPROJECT_VERSION" ]; then

0 commit comments

Comments
 (0)