fix failing docs generation on no changes

This commit is contained in:
Ace
2025-06-19 14:37:43 +02:00
committed by GitHub
parent 8752324386
commit d9a57f7802

View File

@@ -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