Repository navigation
ci: main 更新后自动同步 README,并为 Go/PHP/Lua 补充图标 - #16
Merged
Merged
Conversation
- 新增 sync-readme 工作流:index、生成脚本、README 或 assets 变化时重新生成并提交 - validate 不再要求 PR 内手动更新 README,track-releases 只改索引 - CONTRIBUTING 说明 icon 字段写法和自动同步流程
icon 指向各插件仓库合并后 main 提交中的 icons/*.svg,并同步 README 插件总览。
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.
接续 #15。#15 合并时,同步 CI 那个提交还没推上去,所以在这个 PR 里补上。
改动
自动同步 README(
sync-readme.yml)lithe-plugin-index.json、scripts/render-readme.mjs、README.md或assets/合并到 main 后,自动重新生成插件总览;有变化就以 lithe-store-bot 身份提交回 main。GITHUB_TOKEN推送的提交不会触发新的工作流,所以不会循环。validate.yml去掉 README 一致性检查,track-releases.yml只改索引;对应的测试也移除了。贡献者只需要改索引。icon字段的写法和自动同步流程。插件图标
icon,分别指向 lithe-plugin-go#1、lithe-plugin-php#1、lithe-plugin-lua#3 合并后的 main 提交里的icons/*.svg。图标来自 Simple Icons(CC0),带各语言的品牌色。验证
node scripts/validate-index.mjs:5 个插件全部有效node --test scripts/store.test.mjs:46 个测试全部通过