Skip to content

Commit

Permalink
fix: Update make-release script to evaluate git diff-index exit codes
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun committed Dec 22, 2023
1 parent 5c5359f commit bb8a7ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/make-release
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ status " Send them manually before creating a version"
"$SCRIPTS/tx" --token "$TX_TOKEN" status
"$SCRIPTS/transifex-send-strings"

git diff-index --quiet HEAD locale || git commit locale -m "${COMMIT_PREFIX}Building locales"
git diff-index --exit-code --quiet HEAD locale || git commit locale -m "${COMMIT_PREFIX}Building locales"

echo ""
status "******************************************************************************"
Expand All @@ -209,7 +209,7 @@ status "- Fetching strings from transifex"

# Before compiling:
# ignore changesets that only involves "^POT-Creation-Date:" "^PO-Revision-Date:"
git diff-index --quiet HEAD locale || git commit locale -m "${COMMIT_PREFIX}compilemessages"
git diff-index --exit-code --quiet HEAD locale || git commit locale -m "${COMMIT_PREFIX}compilemessages"
cd ..

status "- generating assets/static"
Expand Down Expand Up @@ -275,7 +275,7 @@ if ! grep -q " *${VERSION}$" docs/upgrade/index.rst; then
fi
#
# commit documentations
git diff-index --quiet HEAD docs CHANGELOG.rst || git commit -m "${COMMIT_PREFIX}updating latest docs" "${upgrade_doc}" CHANGELOG.rst docs/upgrade/index.rst docs/conf.py
git diff-index --exit-code --quiet HEAD docs CHANGELOG.rst || git commit -m "${COMMIT_PREFIX}updating latest docs" "${upgrade_doc}" CHANGELOG.rst docs/upgrade/index.rst docs/conf.py

# update the blog post using the What's new section
status "Pushing to repo"
Expand Down

0 comments on commit bb8a7ef

Please sign in to comment.