chore: Update release check of version (#5936)

This commit is contained in:
William FH
2025-08-18 10:18:53 -07:00
committed by GitHub
parent 9918488169
commit ae62b8faf2
+6 -1
View File
@@ -62,7 +62,12 @@ jobs:
working-directory: ${{ inputs.working-directory }}
run: |
PKG_NAME=$(grep -m 1 "^name = " pyproject.toml | cut -d '"' -f 2)
VERSION=$(grep -m 1 "^version = " pyproject.toml | cut -d '"' -f 2)
# sdk-py uses dynamic versioning from langgraph_sdk/__init__.py
if [ "$PKG_NAME" = "langgraph-sdk" ]; then
VERSION=$(grep -m 1 '^__version__' langgraph_sdk/__init__.py | cut -d '"' -f 2)
else
VERSION=$(grep -m 1 "^version = " pyproject.toml | cut -d '"' -f 2)
fi
SHORT_PKG_NAME="$(echo "$PKG_NAME" | sed -e 's/langgraph//g' -e 's/-//g')"
if [ -z $SHORT_PKG_NAME ]; then
TAG="$VERSION"