From fe66b6c183f0b17b4e7bc1e31bd140adb9bff7bd Mon Sep 17 00:00:00 2001 From: icarus Date: Thu, 4 Sep 2025 18:30:47 +0800 Subject: [PATCH] =?UTF-8?q?ci(github):=20=E6=9B=B4=E6=96=B0=E8=87=AA?= =?UTF-8?q?=E5=8A=A8i18n=E5=B7=A5=E4=BD=9C=E6=B5=81=E4=BB=A5=E6=94=AF?= =?UTF-8?q?=E6=8C=81PR=E5=88=86=E6=94=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改自动i18n工作流,在检出步骤中添加ref参数以支持PR分支 更新提交消息格式以包含PR编号 --- .github/workflows/auto-i18n.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/auto-i18n.yml b/.github/workflows/auto-i18n.yml index 346557af2e..5fdbf36cfc 100644 --- a/.github/workflows/auto-i18n.yml +++ b/.github/workflows/auto-i18n.yml @@ -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