fix: allow generated data outputs

This commit is contained in:
SHAREit
2026-10-16 15:14:47 +08:00
parent e3e7d0cdf4
commit af245d2bab
10 changed files with 46 additions and 6 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ python3 scripts/af_click_gap_pipeline.py --no-push # 写 JSON 和 commit,
python3 scripts/af_click_gap_pipeline.py --start-date 2026-10-10 --end-date 2026-10-16 --no-push
```
`--dry-run` 只读取数据库并在仓库外临时目录生成、校验 JSON,不写 `data` 或 Git。正式运行先原子替换数据文件,再执行 Git;数据库查询或校验失败不会发布文件。push 失败会保留本地 commit,不会 force push。工作区存在本任务之外的未提交改动时,脚本拒绝继续。
`--dry-run` 只读取数据库并在仓库外临时目录生成、校验 JSON,不写 `data` 或 Git。正式运行先原子替换 `data/` 输出目录中的数据文件,再执行 Git;数据库查询或校验失败不会发布文件。Git 安全检查只允许本次生成的 `data/*.json`(含 `data/index.json`),工作区存在其它未提交改动时拒绝继续。push 失败会保留本地 commit,不会 force push。
## 看板