ci(i18n): 在自动翻译工作流中忽略 package.json 和 yarn.lock 的更改

重置 package.json 和 yarn.lock 的更改,避免在自动更新翻译时提交这些文件
This commit is contained in:
icarus 2025-09-04 18:43:54 +08:00
parent 52863a8f87
commit e37dea9752

View File

@ -49,6 +49,7 @@ jobs:
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add .
git reset -- package.json yarn.lock # 不提交 package.json 和 yarn.lock 的更改
git commit -m "fix(i18n): Auto update translations for PR #${{ github.event.pull_request.number }}"
- name: 🚀 Push changes