fix: retry locale workflow pushes

This commit is contained in:
Peter Steinberger 2026-04-05 13:32:40 +01:00
parent cdc1a3fbc9
commit e83f56c9ae
No known key found for this signature in database

View File

@ -194,4 +194,11 @@ jobs:
git config user.email "openclaw-docs-i18n[bot]@users.noreply.github.com"
git add "docs/${LOCALE}" "docs/.i18n/${LOCALE}.tm.jsonl"
git commit -m "chore(i18n): refresh ${LOCALE} translations"
git push origin HEAD:main
for attempt in 1 2 3 4 5; do
if git pull --rebase origin main && git push origin HEAD:main; then
exit 0
fi
sleep 5
done
echo "Failed to push ${LOCALE} translations after retries."
exit 1