Files
ai-passport/docs/development/ci/CI-sync-main.md
T
hex2077 6a7f4e010b chore: 新增大量静态资源、测试桩文件与配置文件,清理旧无用资源
本次提交新增了多种字体、UI图片、音频剪辑等静态资源,添加了测试桩文件与项目配置文件,同时清理了部分已废弃的旧图片与测试桩代码文件。
2026-09-22 00:42:26 +08:00

1.1 KiB

简体中文 · English

Upstream Synchronization

.github/workflows/sync-main.yml synchronizes a fork's main branch with FoloToy/ai-passport:main. It runs daily at 00:00 UTC and by manual dispatch, and is skipped when the repository is not a fork.

The workflow checks out the target main without persisting credentials and uses the full-SHA-pinned upstream-sync Action. Its generated GITHUB_TOKEN has only contents: write; no manually configured token is required. If synchronization fails after an upstream workflow change, use GitHub's Sync fork once and inspect the Actions log.

Keep fork-specific firmware and documentation on feature branches so main stays synchronized. If development must happen directly on main, disable this workflow first to avoid automatic merges or conflicts. Fork owners must explicitly enable Actions after forking.

When upgrading an Action, verify the release and full commit SHA from the official repository and update the inline version comment.