mirror of
https://github.com/ai-robots-txt/ai.robots.txt.git
synced 2025-06-18 17:50:52 +00:00
chore(ai_robots_update.yml): correct workflow by revising git flags + adding guard
This commit is contained in:
parent
4af776f0a0
commit
899ce01c55
1 changed files with 6 additions and 1 deletions
7
.github/workflows/ai_robots_update.yml
vendored
7
.github/workflows/ai_robots_update.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue