Skip to content

Commit b40318d

Browse files
authored
Merge pull request #395 from google/update_script
Fix scripts/make_release.sh
2 parents 6732d75 + b581e45 commit b40318d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/make_release.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,12 @@ echo -e "${ACTION}Modifying MODULE.bazel${NOCOLOR}"
6666
sed -i "s/CPU_FEATURES_VERSION = \"${LATEST_VERSION}\"/CPU_FEATURES_VERSION = \"${VERSION}\"/g" MODULE.bazel
6767

6868
echo -e "${ACTION}Commit new revision${NOCOLOR}"
69-
git add CMakeLists.txt
69+
git add CMakeLists.txt MODULE.bazel
7070
git commit -m"Release ${GIT_TAG}"
7171

72+
echo -e "${ACTION}Check for unstaged or uncommited changes${NOCOLOR}"
73+
git diff --quiet && git diff --quiet --cached
74+
7275
echo -e "${ACTION}Create new tag${NOCOLOR}"
7376
git tag ${GIT_TAG}
7477

0 commit comments

Comments
 (0)