log the diff in the update action daily_update.yml

This commit is contained in:
Fabian Egli 2024-10-19 00:01:15 +02:00 committed by GitHub
parent 04f630f7f8
commit cfaade6e2f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -16,6 +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 --no-pager diff
git add -A
git diff --quiet && git diff --staged --quiet || (git commit -m "Daily update from Dark Visitors" && git push)
shell: bash
@ -24,4 +25,4 @@ jobs:
uses: ./.github/workflows/main.yml
secrets: inherit
with:
message: "Daily update from Dark Visitors"
message: "Daily update from Dark Visitors"