Merge pull request #139 from ai-robots-txt/workflow-fix

chore(ai_robots_update.yml): correct workflow by revising git flags + adding guard
This commit is contained in:
Glyn Normington 2025-06-03 02:52:23 +01:00 committed by GitHub
commit 9dbf34010a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -20,7 +20,12 @@ jobs:
echo "... done." echo "... done."
git --no-pager diff git --no-pager diff
git add -A 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 shell: bash
convert: convert:
name: convert name: convert