[docs] Make sure the local version of docs is up to date [skipci]
@@ -11,6 +11,8 @@ git checkout rb/Gemfile.lock
# switch to gh-pages and copy the files
git checkout gh-pages || exit
+# make sure that our local version is up to date.
+git pull || exit
rm -rf docs/api/java docs/api/py docs/api/rb
mv build/javadoc docs/api/java
