chore(ai_robots_update.yml): correct workflow by revising git flags + adding guard

This commit is contained in:
Cory Dransfeldt 2025-06-02 14:47:31 -07:00
parent 4af776f0a0
commit 899ce01c55
No known key found for this signature in database

View file

@ -20,7 +20,12 @@ jobs:
echo "... done."
git --no-pager diff
git add -A
git diff --quiet && git diff --staged --quiet || (git commit -m "Update from Dark Visitors" && git push)
if ! git diff --cached --quiet; then
git commit -m "Update from Dark Visitors"
git push
else
echo "No changes to commit."
fi
shell: bash
convert:
name: convert