Skip to content

Commit

Permalink
Fix documentation CI/CD errors when having no changes in docs
Browse files Browse the repository at this point in the history
After we supplied the very first opera documentation which followed the
issue #47, we have discovered that there are some issues with the
deployment. The CI/CD pipeline failed when there were no new changes
for the sphinx doc files within the merged commit saying that the
working tree is clean and that there was nothing new to commit. Top
prevent these ugly failures we enabled creating empty commits for these
cases by adding --allow-empty flag to the git commit command.
  • Loading branch information
anzoman authored and cankarm committed Aug 28, 2020
1 parent 83b1064 commit f902771
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ commands:
git add .
git config --global user.email circleci@circleci
git config --global user.name CircleCI
git commit -m "Add generated opera docs for GitHub pages"
git commit --allow-empty -m "Add generated opera docs for GitHub pages"
git push origin gh-pages
executors:
Expand Down

0 comments on commit f902771

Please sign in to comment.