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:
parent
51bde5d94f
commit
37a9d02850
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue