make docs push require changes to avoid false error

This commit is contained in:
Jonathan Shook
2020-03-26 13:08:04 -05:00
parent cdbf88c468
commit 08ce80fc4d

View File

@@ -205,8 +205,13 @@ jobs:
cd nosqlbench-docs
git add docs
git add -u
git commit -m"docs update for $GITHUB_REF"
git push
CHANGES=$(git status --porcelain 2>/dev/null| wc -l)
echo "found $CHANGES to push for doc updates"
if (( $CHANGES > 0 ))
git commit -m"docs update for $GITHUB_REF"
git push
fi