Skip to content

Commit

Permalink
Prevent commit if nothing changed
Browse files Browse the repository at this point in the history
  • Loading branch information
2martens committed Aug 17, 2023
1 parent 794a08c commit 5ff47de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5ff47de

Please sign in to comment.