ci(github): 更新自动i18n工作流以支持PR分支

修改自动i18n工作流,在检出步骤中添加ref参数以支持PR分支
更新提交消息格式以包含PR编号
This commit is contained in:
icarus 2025-09-04 18:30:47 +08:00
parent 13c70aeb3d
commit fe66b6c183

View File

@ -21,6 +21,8 @@ jobs:
steps:
- name: 🐈‍⬛ Checkout
uses: actions/checkout@v5
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: 📦 Setting Node.js
uses: actions/setup-node@v4
@ -38,7 +40,7 @@ jobs:
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add .
git commit -m "fix: Auto update i18n locales from GitHub Actions"
git commit -m "fix(i18n): Auto update translations for PR #${{ github.event.pull_request.number }}"
- name: 🚀 Push changes
uses: ad-m/github-push-action@master