Repository navigation
fix: fail README generation on errors - #1895
Merged
Anduin2017 merged 1 commit intoOct 25, 2026
Merged
Conversation
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.
变更说明
README 生成器在遍历文件或写入 README 失败时只记录错误,但进程仍以成功状态退出,可能让构建工作流误报成功。现在保留错误日志并设置非零退出码。
验证
node --check .github/readme-generate.jsreaddir('.')失败:修改前进程退出码为 0,修改后为 1git diff --check未运行全仓库
npm run lint:其脚本执行textlint . --fix,会改写现存菜谱文本;本 PR 不更改菜谱内容。未查询或等待 CI。签署