Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions .github/workflows/gate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,13 +170,7 @@ jobs:
# entry → "NNNN archive_path" 行(pyyaml 已随本 job 前置步骤安装);
# archive_path 为空的 entry 不入 map(#96 扩展点:后续 substantive 字段
# 不影响本映射——number/archive_path 是本关卡唯一消费的键)
python3 -c '
import yaml
d = yaml.safe_load(open("/tmp/adr_index.yaml", encoding="utf-8"))
for e in d.get("entries") or []:
p = e.get("archive_path")
if p:
print(f"{int(e[\"number\"]):04d} {p}")' >/tmp/adr_map.txt
python3 -c 'import yaml;d=yaml.safe_load(open("/tmp/adr_index.yaml",encoding="utf-8"));[print("%04d %s" % (e["number"], e["archive_path"])) for e in (d.get("entries") or []) if e.get("archive_path")]' >/tmp/adr_map.txt
if [[ ! -s /tmp/adr_map.txt ]]; then
echo "::error::INDEX.yaml 存在但 entries 为空/解析失败——索引世界不可判定,fail-closed"
exit 1
Expand Down