Skip to content

Commit a9f17a9

Browse files
authored
Update update-gh-pages-documentation-site
1 parent aaadbce commit a9f17a9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Scripts/update-gh-pages-documentation-site

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@ CURRENT_COMMIT_HASH=`git rev-parse --short HEAD`
6666
cd gh-pages
6767
git add "$DEPLOYMENT_SUBDIRECTORY"
6868

69-
#if [ -n "$(git status --porcelain)" ]; then
69+
if [ -n "$(git status --porcelain)" ]; then
7070
echo "Documentation changes found. Commiting the changes to the 'gh-pages' branch and pushing to origin."
7171
git commit -m "Update documentation to $CURRENT_COMMIT_HASH on '$CURRENT_BRANCH_NAME'"
7272
git push origin HEAD:gh-pages
73-
#else
74-
# # No changes found, nothing to commit.
75-
# echo "No documentation changes found."
76-
#fi
73+
else
74+
# No changes found, nothing to commit.
75+
echo "No documentation changes found."
76+
fi
7777

7878
# Delete the git worktree we created
7979
cd ..

0 commit comments

Comments
 (0)