skip push if no change

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

View file

@ -16,7 +16,7 @@ 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 commit -m "Daily update from Dark Visitors"
git push
git diff --quiet && git diff --staged --quiet || (git commit -m "Daily update from Dark Visitors" && git push)
shell: bash