From 13c70aeb3d54e454783ab1e36c86997debf8d305 Mon Sep 17 00:00:00 2001 From: icarus Date: Thu, 4 Sep 2025 18:28:50 +0800 Subject: [PATCH] =?UTF-8?q?ci(workflow):=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=E7=9A=84=E6=9D=83?= =?UTF-8?q?=E9=99=90=E5=92=8C=E6=8E=A8=E9=80=81=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加pull-requests写入权限以支持PR操作 将推送动作更新为github-push-action并改为推送至PR分支 --- .github/workflows/auto-i18n.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-i18n.yml b/.github/workflows/auto-i18n.yml index c9adf13375..346557af2e 100644 --- a/.github/workflows/auto-i18n.yml +++ b/.github/workflows/auto-i18n.yml @@ -16,6 +16,7 @@ jobs: name: Auto I18N permissions: contents: write + pull-requests: write steps: - name: 🐈‍⬛ Checkout @@ -40,7 +41,7 @@ jobs: git commit -m "fix: Auto update i18n locales from GitHub Actions" - name: 🚀 Push changes - uses: ad-m/git-push@v1 + uses: ad-m/github-push-action@master with: github_token: ${{ secrets.GITHUB_TOKEN }} - branch: main + branch: ${{ github.event.pull_request.head.ref }}