mirror of
https://github.com/ai-robots-txt/ai.robots.txt.git
synced 2025-04-19 00:26:01 +00:00
skip push if no change
This commit is contained in:
parent
01edb6c78c
commit
379c339f97
1 changed files with 2 additions and 2 deletions
4
.github/workflows/daily_update.yml
vendored
4
.github/workflows/daily_update.yml
vendored
|
@ -16,7 +16,7 @@ jobs:
|
||||||
git config --global user.name "dark-visitors"
|
git config --global user.name "dark-visitors"
|
||||||
git config --global user.email "dark-visitors@users.noreply.github.com"
|
git config --global user.email "dark-visitors@users.noreply.github.com"
|
||||||
python code/dark_visitors.py
|
python code/dark_visitors.py
|
||||||
|
|
||||||
git add -A
|
git add -A
|
||||||
git commit -m "Daily update from Dark Visitors"
|
git diff --quiet && git diff --staged --quiet || (git commit -m "Daily update from Dark Visitors" && git push)
|
||||||
git push
|
|
||||||
shell: bash
|
shell: bash
|
Loading…
Add table
Add a link
Reference in a new issue