Files
ai-passport/docs/development/ci/CI-sync-main.md
T
cjiio 3b644a97a0 fix: harden runtime recovery and firmware validation
Fix BSP audio recovery, LVGL initialization and ADC rollback; make demo worker and wireless teardown retry-safe and report recording failures accurately.

Validate all flashed images, add failure-injection host tests, fix fork sync checkout and align bilingual engineering and archive documentation.
2026-09-17 17:17:20 +08:00

1.4 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.

The checkout explicitly sets ref: main, even when a manual dispatch selects another branch. The sync Action expects a local main branch before fetching; without that explicit checkout, git checkout main can interpret this repository's main/ directory as a path instead of switching branches.

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