mirror of
https://github.com/nkcmr/HyperTab.git
synced 2026-03-28 04:11:46 +01:00
release process
This commit is contained in:
14
tag.sh
Executable file
14
tag.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -euo pipefail
|
||||
[ -n "${TRACE:-}" ] && set -x
|
||||
|
||||
current_tag="$(git describe --tags --abbrev=0)"
|
||||
next_tag="$(datever increment "$current_tag")"
|
||||
|
||||
if [[ "$(git describe --exact-match --tags 2>/dev/null)" != "" ]]; then
|
||||
echo "Current commit is already tagged; quiting..."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
git tag "$next_tag"
|
||||
Reference in New Issue
Block a user