Skip to content

Commit

Permalink
update tag script
Browse files Browse the repository at this point in the history
  • Loading branch information
mpawlowski committed Jun 12, 2024
1 parent 364e36a commit cde4126
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions src/bin/build-scripts/tag.patch.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

git fetch --tags
git fetch --tags --force
latestTag=$(git tag | grep v | sort -V | tail -n 1)

# Split the version into major, minor, patch
Expand Down Expand Up @@ -29,8 +29,14 @@ patch=$((patch + 1))
# Assemble the new version
newTag="$major.$minor.$patch"

echo "New Tag: $newTag"
echo "New Version ($major.$minor.$patch) -> ($newTag)"

# # Create a new tag
# git tag $newTag
# git push origin $newTag
read -p "Verify new version: " inputTag

if [ "$inputTag" != "$newTag" ]; then
echo "Incorrect tag entered. Exiting..."
exit 1
fi

git tag $newTag
git push origin $newTag

0 comments on commit cde4126

Please sign in to comment.