feat: 更新文档以说明工作流可见性要求和 GitHub CLI 使用方法

This commit is contained in:
春河晴
2026-03-13 19:33:36 +09:00
parent ca605eb560
commit e21ea5f9cf
2 changed files with 12 additions and 4 deletions

View File

@@ -160,13 +160,14 @@ GitHub Actions 中的 [`crowdin-sync.yml`](../.github/workflows/crowdin-sync.yml
- 只能手动触发。
- 会把仓库当前已提交的目标语言文件上传到 Crowdin用来保留历史翻译。
- 不会作为日常 workflow 持续上传 GitHub 中的目标语言改动。
- 这个 workflow 必须先存在于仓库默认分支后,才会在 GitHub 网页端出现,也才能被 `gh workflow run` 调用。
常用命令:
```bash
python scripts/i18n_validate.py
gh workflow run crowdin-sync.yml --ref r-dev
gh workflow run crowdin-bootstrap.yml --ref r-dev -f base_branch=r-dev -f confirm_bootstrap=yes-bootstrap-current-target-translations
gh workflow run crowdin-sync.yml --ref main
gh workflow run crowdin-bootstrap.yml --ref main -f base_branch=r-dev -f confirm_bootstrap=yes-bootstrap-current-target-translations
gh run list --workflow crowdin-sync.yml --limit 5
gh pr list --head l10n_r-dev
```