Repository navigation
feat(ci): 自动镜像插件商店索引、安装包与图标到 CNB - #121
Merged
Merged
Conversation
27 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动类型
插件
自检
plugin.json的vendor.signatureRequirement为"none",ID 不在dev.lithe.*— 未修改插件清单或索引数据node scripts/validate-index.mjs --verify-archives— 未修改lithe-plugin-index.json;已运行完整测试node --test scripts/mirror-cnb.test.mjs scripts/store.test.mjs(61/61 通过)plugin.json中声明,并在仓库 README 中说明 — 未新增或修改插件条目downloadURL/sha256,没有删除历史版本(撤回除外) — 未修改lithe-plugin-index.json或 GitHub Releases 历史版本改动说明
main的lithe-plugin-index.json、lithe-plugin-deltas.json、lithe-plugin-recommendations.json与仓库状态推送至https://cnb.cool/lithe-idea/Lithe-store。plugin-<plugin-id>Release:默认保留最新 3 个版本(若更老版本对应不同的pluginAPIVersion,最多额外保留 2 个回退版本)及对应.lithe-delta补丁,下载后按索引 SHA-256 校验再上传;通过.mirror-checksums.json跳过未变更资产,并自动清理过期资产与已下架插件的 CNB Release。plugin-iconsRelease(自动按<plugin-id>.svg命名并清理不再使用的图标)。pluginAPIVersion回退保留)、增量补丁与图标同步、跳过未变资产及清理过期资产/已下架插件 Release。main更新索引、增量、推荐、图标或脚本时自动触发,也支持通过workflow_dispatch按plugin或keep_versions手动触发;未配置CNB_TOKEN时安全跳过。验证
node --test scripts/mirror-cnb.test.mjs scripts/store.test.mjs:61/61 通过。actionlint .github/workflows/mirror-cnb.yml:通过(0 报错)。main后携带CNB_TOKEN执行真实上传与首次全量同步(需在合入后手动触发一次Mirror to CNB工作流完成首批镜像同步)。