Skip to content

Commit

Permalink
Don't error if there are no doxygen changes
Browse files Browse the repository at this point in the history
  • Loading branch information
darksylinc committed Nov 10, 2023
1 parent 317eaca commit 6d06db9
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Scripts/BuildScripts/build_ci_doxygen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,13 @@ git config user.name "[email protected]"

echo "--- Adding to ${OGRE_VERSION} to git ---"
git add ${OGRE_VERSION} || exit $?
echo "--- Committing ---"
git commit -m "Deploy GH" || exit $?
echo "--- Pushing repo... ---"
git push || exit $?
if [ $(git status --porcelain | wc -l) -eq "0" ]; then
echo "--- Nothing has changed. Nothing to commit or push. ---"
else
echo "--- Committing ---"
git commit -m "Deploy GH" || exit $?
echo "--- Pushing repo... ---"
git push || exit $?
fi

echo "Done!"

0 comments on commit 6d06db9

Please sign in to comment.