1
0
mirror of https://github.com/google/cpu_features.git synced 2025-07-01 05:11:15 +02:00

Fix scripts/make_release.sh

- Make sure to commit `MODULE.bazel`
- Fail before tagging if the repo has unstaged or uncommited changes.
This commit is contained in:
Guillaume Chatelet
2025-05-06 09:42:28 +00:00
parent 6732d75eb1
commit b581e45969

View File

@ -66,9 +66,12 @@ echo -e "${ACTION}Modifying MODULE.bazel${NOCOLOR}"
sed -i "s/CPU_FEATURES_VERSION = \"${LATEST_VERSION}\"/CPU_FEATURES_VERSION = \"${VERSION}\"/g" MODULE.bazel
echo -e "${ACTION}Commit new revision${NOCOLOR}"
git add CMakeLists.txt
git add CMakeLists.txt MODULE.bazel
git commit -m"Release ${GIT_TAG}"
echo -e "${ACTION}Check for unstaged or uncommited changes${NOCOLOR}"
git diff --quiet && git diff --quiet --cached
echo -e "${ACTION}Create new tag${NOCOLOR}"
git tag ${GIT_TAG}