Add auto convert webp workflow #350
Open
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.
新增图片自动生成 WebP 格式的工作流
支持在
pushPNGJPGGIF文件到main分支的assets/img/docs/目录下时触发,也可手动触发。工作流触发后,会自动为
assets/img/docs下的所有PNGJPGGIF文件生成WebP格式并覆盖原文件。随后通过 Git 检查是否有变更,如有变更则以github-actions[bot]的身份将提交强制推送到origin:bot/webp并检测是否已有开启的 PR 如无则创建新的 PR。