fix(ci): deploy-server/site Checkout 加 fetch-depth:1(治间歇性失败) #19
Reference in New Issue
Block a user
Delete Branch "fix/ci-checkout-shallow"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
根因(runner 日志实证):
actions/checkout从GITHUB_SERVER_URL=http://git.51yanmei.com克隆——该域名解析到 ali 公网、发夹弯绕回 NAS,慢且间歇 reset;而 runner↔gitea 的 API 通信走 LAN192.168.3.200:3000是稳的。deploy-server / deploy-site 用 full clone(全历史几十 MB) 走那条抖动链路,必挂在 Checkout(本次 server-v1.1.3 连续失败即此)。deploy-client 早已加
fetch-depth:1,故其发版能过。改动:给 deploy-server / deploy-site 的 Checkout 补上同样的
fetch-depth:1,数据量降到几 MB,大幅提升成功率,与 deploy-client 一致。合并后重触发 deploy-server 验证。
🤖 Generated with Claude Code