mirror of
https://gitcode.com/JianFeeeee/HomeAgent.git
synced 2026-10-14 19:43:37 +00:00
ci(release): gh release download 需显式 --repo(非 git 目录无法推断)
## 症状(第三次试发布)
Build 全绿、tag 已建、release 已建、2.40GB 附件全部上传成功 ——
唯独最后一道「回读校验」失败,整个 workflow 因此标记为 failure:
failed to run git: fatal: not a git repository (or any of the
parent directories): .git
##[error]Process completed with exit code 1.
## 根因
回读校验为了"下一份干净副本"先 `cd /tmp/back`,那里不是 git 仓库。
而 `gh release download` 默认从**当前目录的 git 上下文**推断仓库与
host(GITHUB_REPOSITORY / GH_HOST 之类环境变量不足以让它跳过推断),
于是报 "not a git repository"。
## 修法
gh release download "$TAG" --repo "$GITHUB_REPOSITORY"
两个仓的 workflow 都有同一处(主仓 + SDK),一并修。
## 顺带
`third_party/homeagent-sdk/.github/` 加入 .gitignore —— 与 skills/ 同类:
SDK 仓自己的 workflow 由 SDK 仓跟踪管理(那边已跟踪),本仓不参与
构建,不需要在这边重复一份。未加规则时它会出现在本仓的未跟踪列表里。
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@ -36,6 +36,9 @@ third_party/homeagent-sdk/scripts/
|
||||
# skills/ 是 SDK 仓的 skill 源(hmapdev skill install 的来源),
|
||||
# 与 tools/、docs/ 同理属 SDK 仓自治范围,不进本仓。
|
||||
third_party/homeagent-sdk/skills/
|
||||
# .github/ 同理:SDK 仓的 workflow 由 SDK 仓自己管(它在那边被跟踪),
|
||||
# 本仓不参与构建,不需要在这边重复一份。
|
||||
third_party/homeagent-sdk/.github/
|
||||
third_party/homeagent-sdk/.gitignore
|
||||
third_party/homeagent-sdk/README*
|
||||
third_party/homeagent-sdk/example/
|
||||
|
||||
Reference in New Issue
Block a user