Skip to content

Commit

Permalink
Strip 'v' prefix from version in release workflow script
Browse files Browse the repository at this point in the history
  • Loading branch information
ogabrielluiz committed Nov 13, 2024
1 parent f0ba6b3 commit 104fc3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
- name: Check Version
id: check-version
run: |
version=$(uv tree | grep 'langflow-base' | awk '{print $3}')
version=$(uv tree | grep 'langflow-base' | awk '{print $3}' | sed 's/^v//')
last_released_version=$(curl -s "https://pypi.org/pypi/langflow-base/json" | jq -r '.releases | keys | .[]' | sort -V | tail -n 1)
if [ "$version" = "$last_released_version" ]; then
echo "Version $version is already released. Skipping release."
Expand Down

0 comments on commit 104fc3a

Please sign in to comment.