Add check for clean git to bump-version/release script
This commit is contained in:
parent
4bb6474ccd
commit
45312bc80a
|
@ -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} ]]
|
||||
|
|
Loading…
Reference in New Issue