Skip to content

Commit 01a6345

Browse files
authored
fix: issue with reading current semver
1 parent 57b0492 commit 01a6345

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@ jobs:
3636
LATEST_TAG=$(git tag -l '[0-9]*.[0-9]*.[0-9]*' --sort=-v:refname | head -n 1 || true)
3737
LATEST_TAG=$(echo "$LATEST_TAG" | tr -d '[:space:]')
3838
CURRENT_VERSION="${LATEST_TAG:-0.0.0}"
39-
40-
IFS='.'; set -- "$CURRENT_VERSION"; MAJOR=$1; MINOR=$2; PATCH=$3
39+
40+
IFS='.' read -r MAJOR MINOR PATCH <<EOF
41+
$CURRENT_VERSION
42+
EOF
4143
4244
case "$COMMIT_MESSAGE" in
4345
feat!*) MAJOR=$((MAJOR + 1)); MINOR=0; PATCH=0 ;;

0 commit comments

Comments
 (0)