mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-24 18:50:56 +08:00
ci(workflow): 更新自动i18n工作流的权限和推送配置
添加pull-requests写入权限以支持PR操作 将推送动作更新为github-push-action并改为推送至PR分支
This commit is contained in:
parent
21ae9982d9
commit
13c70aeb3d
5
.github/workflows/auto-i18n.yml
vendored
5
.github/workflows/auto-i18n.yml
vendored
@ -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 }}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user