skip push if no change

This commit is contained in:
Chenghao Mou 2024-08-06 19:40:43 +01:00
parent 379c339f97
commit 0b6eba8dd5

View file

@ -16,7 +16,6 @@ jobs:
git config --global user.name "dark-visitors"
git config --global user.email "dark-visitors@users.noreply.github.com"
python code/dark_visitors.py
git add -A
git diff --quiet && git diff --staged --quiet || (git commit -m "Daily update from Dark Visitors" && git push)
shell: bash