Skip to content
This repository was archived by the owner on Dec 3, 2024. It is now read-only.

Commit 45312bc

Browse files
committed
Add check for clean git to bump-version/release script
1 parent 4bb6474 commit 45312bc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/bump-version.bash

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
set -e
44

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

0 commit comments

Comments
 (0)