ci(github): fix auto-i18n condition (#9921)

* ci(github): 修复自动i18n工作流的仓库名称条件

修复条件判断中的仓库名称变量,确保工作流在正确的仓库中运行

* ci(workflow): 简化自动i18n工作流的条件表达式

* fix(translate): fix warn
This commit is contained in:
Phantom 2025-09-05 12:07:14 +08:00 committed by GitHub
parent e3e8783eb8
commit 19846c7e01
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ on:
jobs:
auto-i18n:
runs-on: ubuntu-latest
if: github.event.pull_request.base.repo.full_name == 'CherryHQ/cherry-studio'
if: github.event.pull_request.head.repo.full_name == 'CherryHQ/cherry-studio'
name: Auto I18N
permissions:
contents: write

View File

@ -664,7 +664,7 @@ const TranslatePage: FC = () => {
}
setIsProcessing(false)
},
[getSingleFile, isProcessing, processFile, t]
[getSingleFile, isProcessing, processFile, setText, t]
)
return (
<Container