forked from phoedos/pmd
[ci] Fix script to actually push the docs
This commit is contained in:
@ -4,7 +4,7 @@ set -e
|
|||||||
source .travis/common-functions.sh
|
source .travis/common-functions.sh
|
||||||
|
|
||||||
function push_docs() {
|
function push_docs() {
|
||||||
if git diff docs --quiet; then
|
if git diff --quiet docs; then
|
||||||
echo "No changes in docs..."
|
echo "No changes in docs..."
|
||||||
else
|
else
|
||||||
echo "Found changes in docs..."
|
echo "Found changes in docs..."
|
||||||
@ -14,7 +14,7 @@ function push_docs() {
|
|||||||
git config user.email "adangel+pmd-bot@users.sourceforge.net"
|
git config user.email "adangel+pmd-bot@users.sourceforge.net"
|
||||||
git add -A docs
|
git add -A docs
|
||||||
git commit -m "Update documentation"
|
git commit -m "Update documentation"
|
||||||
git push git@github.com:pmd/pmd.git master
|
git push git@github.com:pmd/pmd.git HEAD:master
|
||||||
else
|
else
|
||||||
echo "Not on master branch, won't commit+push"
|
echo "Not on master branch, won't commit+push"
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user