Fix failure when no book content has changed

If there is no new book content, `git commit` will return `1` and the entire job will error. Took answer from https://stackoverflow.com/questions/8123674/how-to-git-commit-nothing-without-an-error
This commit is contained in:
Christian Legnitto 2019-05-03 00:39:33 -07:00 committed by GitHub
parent 51bde5d94f
commit 37a9d02850
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,5 +48,5 @@ git remote set-url --push origin git@github.com:graphql-rust/juniper.git
git config --local user.name "Juniper Bot"
git config --local user.email "juniper@example.com"
git add -A $VERSION
git commit -m "Updated book for $VERSION ***NO_CI***"
git diff-index --quiet HEAD || git commit -m "Updated book for $VERSION ***NO_CI***"
git push origin gh-pages