ci(github): fix auto-i18n condition (#9921)
* ci(github): 修复自动i18n工作流的仓库名称条件 修复条件判断中的仓库名称变量,确保工作流在正确的仓库中运行 * ci(workflow): 简化自动i18n工作流的条件表达式 * fix(translate): fix warn
This commit is contained in:
2
.github/workflows/auto-i18n.yml
vendored
2
.github/workflows/auto-i18n.yml
vendored
@@ -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
|
||||
|
||||
@@ -664,7 +664,7 @@ const TranslatePage: FC = () => {
|
||||
}
|
||||
setIsProcessing(false)
|
||||
},
|
||||
[getSingleFile, isProcessing, processFile, t]
|
||||
[getSingleFile, isProcessing, processFile, setText, t]
|
||||
)
|
||||
return (
|
||||
<Container
|
||||
|
||||
Reference in New Issue
Block a user