Skip to content

Commit 353cb00

Browse files
fix version
1 parent 2089c87 commit 353cb00

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/actions/set-version/action.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,7 @@ runs:
1313
else
1414
BRANCH_NAME="$GITHUB_REF_NAME"
1515
fi
16-
echo "VERSION=$BRANCH_NAME" >> $GITHUB_ENV
17-
echo "Using version: $BRANCH_NAME"
16+
# Strip leading 'v' if present
17+
VERSION="${BRANCH_NAME#v}"
18+
echo "VERSION=$VERSION" >> $GITHUB_ENV
19+
echo "Using version: $VERSION (from branch: $BRANCH_NAME)"

0 commit comments

Comments
 (0)