diff --git a/.github/workflows/update-docs.yml b/.github/workflows/update-docs.yml index 9134ef8..b2f3c8e 100644 --- a/.github/workflows/update-docs.yml +++ b/.github/workflows/update-docs.yml @@ -44,5 +44,10 @@ jobs: git config user.name "github-actions" git config user.email "actions@github.com" git add docs/* - git commit -m "update docs [bot]" - git push + # Check if anything is staged before committing + if git diff --cached --quiet; then + echo "Nothing to commit." + else + git commit -m "update docs [bot]" + git push + fi