diff --git a/.drone.yml b/.drone.yml index d0a0961..a9f8527 100644 --- a/.drone.yml +++ b/.drone.yml @@ -135,7 +135,7 @@ steps: - chmod 600 $HOME/.ssh/known_hosts - ssh-keyscan -H git.2martens.de > $HOME/.ssh/known_hosts 2>/dev/null - git add ansible/inventories/host_vars/api-server/public.yaml - - git commit -m "[Drone] Changed wahlrecht_image_version to ${DRONE_SEMVER}" + - git diff-index --quiet HEAD || git commit -m "[Drone] Changed wahlrecht_image_version to ${DRONE_SEMVER}" - git push origin main - name: deploy image image: plugins/ansible:latest