From 53e0fa65a1c0cb2f4e3972bd66e9cf3dada8cda6 Mon Sep 17 00:00:00 2001 From: Pavindu Lakshan Date: Sun, 22 Jun 2025 20:52:01 +0530 Subject: [PATCH] Update release workflow action --- .github/scripts/release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/scripts/release.sh b/.github/scripts/release.sh index 2a1f6a9..52b024d 100644 --- a/.github/scripts/release.sh +++ b/.github/scripts/release.sh @@ -51,7 +51,7 @@ else fi # Extract current version. -CURRENT_VERSION=$(git describe --tags --abbrev=0 2>/dev/null || echo "0.0.0") +CURRENT_VERSION=$(git tag --sort=-v:refname | head -n 1 | sed 's/^v//' || echo "0.0.0") IFS='.' read -r MAJOR MINOR PATCH <<< "${CURRENT_VERSION}" # Determine which part to increment