惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

爱范儿
爱范儿
大猫的无限游戏
大猫的无限游戏
J
Java Code Geeks
MongoDB | Blog
MongoDB | Blog
Martin Fowler
Martin Fowler
GbyAI
GbyAI
Microsoft Azure Blog
Microsoft Azure Blog
Recent Announcements
Recent Announcements
F
Fortinet All Blogs
B
Blog
U
Unit 42
B
Blog RSS Feed
D
DataBreaches.Net
Google DeepMind News
Google DeepMind News
人人都是产品经理
人人都是产品经理
腾讯CDC
量子位
酷 壳 – CoolShell
酷 壳 – CoolShell
V
Visual Studio Blog
博客园 - 聂微东
MyScale Blog
MyScale Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 三生石上(FineUI控件)
Engineering at Meta
Engineering at Meta

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix(ci): bound ClawHub docs checkout (#87811) · openclaw/...
RomneyDa · 2026-05-29 · via Recent Commits to openclaw:main

File tree

    • actions/detect-docs-changes

Original file line numberDiff line numberDiff line change

@@ -35,17 +35,29 @@ runs:

3535

exit 0

3636

fi

3737
38-

# Check if any changed file is a doc

39-

DOCS=$(echo "$CHANGED" | grep -E '^docs/|\.md$|\.mdx$' || true)

40-

if [ -n "$DOCS" ]; then

38+

docs_changed=false

39+

non_docs=false

40+

while IFS= read -r changed_path; do

41+

case "$changed_path" in

42+

test/fixtures/*)

43+

non_docs=true

44+

;;

45+

docs/* | *.md | *.mdx)

46+

docs_changed=true

47+

;;

48+

*)

49+

non_docs=true

50+

;;

51+

esac

52+

done <<< "$CHANGED"

53+
54+

if [ "$docs_changed" = "true" ]; then

4155

echo "docs_changed=true" >> "$GITHUB_OUTPUT"

4256

else

4357

echo "docs_changed=false" >> "$GITHUB_OUTPUT"

4458

fi

4559
46-

# Check if all changed files are docs or markdown

47-

NON_DOCS=$(echo "$CHANGED" | grep -vE '^docs/|\.md$|\.mdx$' || true)

48-

if [ -z "$NON_DOCS" ]; then

60+

if [ "$non_docs" = "false" ]; then

4961

echo "docs_only=true" >> "$GITHUB_OUTPUT"

5062

echo "Docs-only change detected — skipping heavy jobs"

5163

else

Original file line numberDiff line numberDiff line change

@@ -1494,11 +1494,44 @@ jobs:

14941494

- name: Checkout ClawHub docs source

14951495

run: |

14961496

set -euo pipefail

1497-

git init clawhub-source

1498-

git -C clawhub-source config gc.auto 0

1499-

git -C clawhub-source remote add origin "https://github.com/openclaw/clawhub.git"

1500-

git -C clawhub-source fetch --no-tags --depth=1 origin "+HEAD:refs/remotes/origin/checkout"

1501-

git -C clawhub-source checkout --detach refs/remotes/origin/checkout

1497+
1498+

workdir="$GITHUB_WORKSPACE/clawhub-source"

1499+

started_at="$(date +%s)"

1500+
1501+

reset_checkout_dir() {

1502+

mkdir -p "$workdir"

1503+

find "$workdir" -mindepth 1 -maxdepth 1 -exec rm -rf {} +

1504+

}

1505+
1506+

checkout_attempt() {

1507+

local attempt="$1"

1508+
1509+

reset_checkout_dir

1510+

git init "$workdir" >/dev/null

1511+

git -C "$workdir" config gc.auto 0

1512+

git -C "$workdir" remote add origin "https://github.com/openclaw/clawhub.git"

1513+
1514+

timeout --signal=TERM --kill-after=10s 30s git -C "$workdir" \

1515+

-c protocol.version=2 \

1516+

fetch --no-tags --prune --no-recurse-submodules --depth=1 origin \

1517+

"+refs/heads/main:refs/remotes/origin/checkout" || return 1

1518+
1519+

git -C "$workdir" checkout --force --detach refs/remotes/origin/checkout || return 1

1520+

echo "ClawHub checkout attempt ${attempt}/5 succeeded"

1521+

}

1522+
1523+

for attempt in 1 2 3 4 5; do

1524+

if checkout_attempt "$attempt"; then

1525+

elapsed="$(( $(date +%s) - started_at ))"

1526+

echo "ClawHub checkout completed in ${elapsed}s"

1527+

exit 0

1528+

fi

1529+

echo "ClawHub checkout attempt ${attempt}/5 failed"

1530+

sleep $((attempt * 5))

1531+

done

1532+
1533+

echo "ClawHub checkout failed after 5 attempts" >&2

1534+

exit 1

15021535
15031536

- name: Check docs

15041537

env: