ci: retry docs publish fetch failures · openclaw/openclaw@a10c495
steipete
·
2026-04-24
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -63,12 +63,11 @@ jobs:
|
63 | 63 | git add docs .openclaw-sync |
64 | 64 | git commit -m "chore(sync): mirror docs from $GITHUB_REPOSITORY@$GITHUB_SHA" |
65 | 65 | for attempt in 1 2 3 4 5; do |
66 | | - git fetch origin main |
67 | | - git rebase origin/main |
68 | | - if git push origin HEAD:main; then |
| 66 | + if git fetch origin main && git rebase origin/main && git push origin HEAD:main; then |
69 | 67 | exit 0 |
70 | 68 | fi |
71 | | - echo "Push attempt ${attempt} failed; retrying." |
| 69 | + git rebase --abort >/dev/null 2>&1 || true |
| 70 | + echo "Publish sync attempt ${attempt} failed; retrying." |
72 | 71 | sleep $((attempt * 2)) |
73 | 72 | done |
74 | 73 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。