diff --git a/scripts/release_new_version.sh b/scripts/release_new_version.sh old mode 100644 new mode 100755 index 7f3201e..3a1b7d6 --- a/scripts/release_new_version.sh +++ b/scripts/release_new_version.sh @@ -1,8 +1,15 @@ #!/bin/bash # Usage: ./scripts/release_new_version.sh + set -ex +if [ -z "$1" ]; then + echo "Error: Version argument is required" + echo "Usage: $0 " + exit 1 +fi + git fetch origin main git checkout FETCH_HEAD git commit -m "Tag $1" --allow-empty