add script for renaming tags
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
d95fb97e6a
commit
66029f01ae
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
OLD_TAG=${1}
|
||||
NEW_TAG=${OLD_TAG%-mobile}
|
||||
|
||||
echo "OLD: ${OLD_TAG}"
|
||||
echo "NEW: ${NEW_TAG}"
|
||||
|
||||
COMMIT=$(git rev-parse ${OLD_TAG})
|
||||
echo "COMMIT: ${COMMIT}"
|
||||
|
||||
git tag --delete ${OLD_TAG}
|
||||
git push origin --delete ${OLD_TAG}
|
||||
|
||||
git tag ${NEW_TAG} ${COMMIT}
|
||||
git push origin --tags
|
Loading…
Reference in New Issue