Repository navigation
ci: 增加资源包检查 - #60
Merged
Merged
ci: 增加资源包检查#60
Conversation
推送和 PR 时用编辑器的 scripts/checkResourcePack.ts 检查资源包,有错误时失败,警告只提示。
检查上传报告,comment-check-resource.yml 在检查结束后发布或更新 PR 评论;fork 的 PR 也适用。
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.
概要
推送和 PR 时自动检查资源包,规则来自编辑器的
scripts/checkResourcePack.ts(MetaMystia/MetaMystia-ResourceEx-Editor#23、#24)。PR 中会自动发一条评论列出错误和警告。改动
.github/workflows/check-resource.yml:push 到任意分支、PR 和手动触发时,checkout 编辑器 main,用 Node.js 24 运行检查。有错误时检查失败;只有警告时检查通过。PR 中还会上传报告和 PR 编号。.github/workflows/comment-check-resource.yml:检查结束后读取报告,在 PR 中发布评论,之后的推送更新同一条评论。workflow_runworkflow 中;它不检出、不运行 PR 中的代码。合并顺序
--report选项)。在此之前检查照常运行,但不生成报告,也不会评论。workflow_run只按默认分支上的 workflow 运行,评论功能在本 PR 合并后才生效。验证
gh覆盖:新建评论、更新已有评论、PR 已有新提交、缺少报告、PR 编号无效🤖 Generated with Claude Code