ci(workflow): 更新自动i18n工作流的权限和推送配置

添加pull-requests写入权限以支持PR操作
将推送动作更新为github-push-action并改为推送至PR分支
This commit is contained in:
icarus 2025-09-04 18:28:50 +08:00
parent 21ae9982d9
commit 13c70aeb3d

View File

@ -16,6 +16,7 @@ jobs:
name: Auto I18N name: Auto I18N
permissions: permissions:
contents: write contents: write
pull-requests: write
steps: steps:
- name: 🐈‍⬛ Checkout - name: 🐈‍⬛ Checkout
@ -40,7 +41,7 @@ jobs:
git commit -m "fix: Auto update i18n locales from GitHub Actions" git commit -m "fix: Auto update i18n locales from GitHub Actions"
- name: 🚀 Push changes - name: 🚀 Push changes
uses: ad-m/git-push@v1 uses: ad-m/github-push-action@master
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main branch: ${{ github.event.pull_request.head.ref }}