Skip to content

Commit b581e45

Browse files
committed
Fix scripts/make_release.sh
- Make sure to commit `MODULE.bazel` - Fail before tagging if the repo has unstaged or uncommited changes.
1 parent 6732d75 commit b581e45

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)