Skip to content

Commit ab39f54

Browse files
committed
Add script
1 parent cc7ebff commit ab39f54

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

scripts/patch_release.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
git fetch --tags --prune-tags --prune
3+
latest_tag=$(git tag -l --sort=-v:refname | head -n 1)
4+
5+
new_tag=$(echo "$latest_tag" | awk -F. '{ printf("%s.%s.%s", $1, $2, $3+1) }')
6+
7+
git tag "${new_tag}"
8+
9+
git push origin "${new_tag}"

0 commit comments

Comments
 (0)