Add check for clean git to bump-version/release script

This commit is contained in:
Simon Frei 2023-12-26 11:44:54 +01:00
parent 4bb6474ccd
commit 45312bc80a
1 changed files with 5 additions and 0 deletions

View File

@ -2,6 +2,11 @@
set -e
if ! git diff-index --exit-code --quiet HEAD; then
echo "Bumping version aka cutting a release must happen on a clean git workspace"
exit 1
fi
NEW_VERSION_NAME=$1
OLD_VERSION_NAME=$(grep "versionName" "app/build.gradle" | awk '{print $2}')
if [[ -z ${NEW_VERSION_NAME} ]]