Skip to content

Commit 1281fa9

Browse files
committed
fix(release-git-push): set version prefix
1 parent 0a09f42 commit 1281fa9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

release-git-push/action.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ runs:
3434
3535
# Check if current commit has no tag at all
3636
if [ -z "$(git tag --points-at HEAD)" ]; then
37-
echo "Creating and pushing tag ${TAG}"
38-
git tag "${TAG}"
39-
git push --atomic origin HEAD "${TAG}"
37+
echo "Creating and pushing tag v${TAG}"
38+
git tag "v${TAG}"
39+
git push --atomic origin HEAD "v${TAG}"
4040
else
4141
echo "A tag already exists for this commit"
4242
fi
4343
else
4444
echo "Committing changes and pushing"
45-
git commit -m "chore: bump version to ${TAG}" -m "[skip ci]"
46-
git tag "${TAG}"
47-
git push --atomic origin HEAD "${TAG}"
45+
git commit -m "chore: bump version to v${TAG}" -m "[skip ci]"
46+
git tag "v${TAG}"
47+
git push --atomic origin HEAD "v${TAG}"
4848
fi

0 commit comments

Comments
 (0)