From 899ce01c554359ecc66aa36bc2af367069175e10 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Mon, 2 Jun 2025 14:47:31 -0700 Subject: [PATCH] chore(ai_robots_update.yml): correct workflow by revising git flags + adding guard --- .github/workflows/ai_robots_update.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ai_robots_update.yml b/.github/workflows/ai_robots_update.yml index 7e11ce8..17c1cc8 100644 --- a/.github/workflows/ai_robots_update.yml +++ b/.github/workflows/ai_robots_update.yml @@ -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