From 5ebafe14ac2f2fb023eb3f1db12471960dc597b4 Mon Sep 17 00:00:00 2001 From: amecea Date: Fri, 1 Feb 2019 12:57:11 +0200 Subject: [PATCH] Fix documentation publishing. --- .drone.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 4d5e73683..60eae4773 100644 --- a/.drone.yml +++ b/.drone.yml @@ -127,9 +127,11 @@ pipeline: # remove README.md because hugo does not ignore it and fails. This files contains github # links. - rm $CODE_DIR/content/mysqloperator/README.md - # commit changes + # commit changes if something to commit - cd $CODE_DIR - - git add -A; git commit -m "Update MySQL Operator documentation"; git push origin master + - git add -A + - git diff-index --quiet HEAD || git commit -m "Update MySQL Operator documentation" + - git push origin master secrets: - GH_PASSWORD when: