mirror of
https://github.com/ai-robots-txt/ai.robots.txt.git
synced 2025-06-19 02:00:51 +00:00
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:
commit
9dbf34010a
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."
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue