From a10c495f29d035d89bad7c44043cd9eb2a17035f Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Thu, 23 Apr 2026 17:26:31 +0100 Subject: [PATCH] ci: retry docs publish fetch failures --- .github/workflows/docs-sync-publish.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docs-sync-publish.yml b/.github/workflows/docs-sync-publish.yml index 9b5633ef11c..f0099d6a5c1 100644 --- a/.github/workflows/docs-sync-publish.yml +++ b/.github/workflows/docs-sync-publish.yml @@ -63,12 +63,11 @@ jobs: git add docs .openclaw-sync git commit -m "chore(sync): mirror docs from $GITHUB_REPOSITORY@$GITHUB_SHA" for attempt in 1 2 3 4 5; do - git fetch origin main - git rebase origin/main - if git push origin HEAD:main; then + if git fetch origin main && git rebase origin/main && git push origin HEAD:main; then exit 0 fi - echo "Push attempt ${attempt} failed; retrying." + git rebase --abort >/dev/null 2>&1 || true + echo "Publish sync attempt ${attempt} failed; retrying." sleep $((attempt * 2)) done