mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-08 06:19:05 +08:00
ci(workflow): 修改自动i18n工作流触发条件为pull_request
将触发条件从push到main分支改为在pull_request的opened、synchronize和reopened事件时触发
This commit is contained in:
parent
8fbfc3eecd
commit
21ae9982d9
11
.github/workflows/auto-i18n.yml
vendored
11
.github/workflows/auto-i18n.yml
vendored
@ -6,8 +6,8 @@ env:
|
|||||||
BASE_URL: ${{ vars.BASE_URL || 'https://api.ppinfra.com/openai'}}
|
BASE_URL: ${{ vars.BASE_URL || 'https://api.ppinfra.com/openai'}}
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
pull_request:
|
||||||
branches: [main]
|
types: [opened, synchronize, reopened]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@ -32,6 +32,13 @@ jobs:
|
|||||||
- name: 🏃♀️ Translate
|
- name: 🏃♀️ Translate
|
||||||
run: tsx scripts/update-i18n.ts
|
run: tsx scripts/update-i18n.ts
|
||||||
|
|
||||||
|
- name: 🔄 Commit changes
|
||||||
|
run: |
|
||||||
|
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"
|
||||||
|
|
||||||
- name: 🚀 Push changes
|
- name: 🚀 Push changes
|
||||||
uses: ad-m/git-push@v1
|
uses: ad-m/git-push@v1
|
||||||
with:
|
with:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user