ci(docs): auto-sync PROJECT_TREE.md to the docs repo on push to main #28

Merged
whitlocktech merged 1 commits from chore/sync-project-tree-ci into main 2026-07-22 21:24:51 +00:00
Member

Adds a sync-project-tree workflow that keeps android/PROJECT_TREE.md in RunicGateway/docs current.

Behavior

  • Trigger: push to main (+ manual workflow_dispatch).
  • Regenerates the tree from git ls-files via .gitea/scripts/gen_tree.py (deterministic: directories first, then case-insensitive name).
  • Clones the docs repo, writes android/PROJECT_TREE.md, and if it changed, force-pushes branch chore/sync-android-tree and opens a PR against docs main (reuses the open PR if one already exists). Never touches docs main directly.
  • Auth reuses the existing REGISTRY_USER / REGISTRY_TOKEN secrets (the token needs read/write on RunicGateway/docs).

Companion to docs PR #41 (seeds the initial snapshots) and the identical workflows in link (#16) and website (#98). The first run may open a small follow-up PR normalizing the seed to the generator's exact output.

🤖 AI-assisted (Claude). Disclosed per org policy.

Co-Authored-By: Claude noreply@anthropic.com

Adds a `sync-project-tree` workflow that keeps `android/PROJECT_TREE.md` in [`RunicGateway/docs`](https://gitea.whitlocktech.com/RunicGateway/docs) current. ## Behavior - **Trigger:** push to `main` (+ manual `workflow_dispatch`). - Regenerates the tree from `git ls-files` via `.gitea/scripts/gen_tree.py` (deterministic: directories first, then case-insensitive name). - Clones the docs repo, writes `android/PROJECT_TREE.md`, and if it changed, force-pushes branch `chore/sync-android-tree` and opens a PR against docs `main` (reuses the open PR if one already exists). **Never touches docs `main` directly.** - Auth reuses the existing `REGISTRY_USER` / `REGISTRY_TOKEN` secrets (the token needs read/write on `RunicGateway/docs`). Companion to docs PR #41 (seeds the initial snapshots) and the identical workflows in `link` (#16) and `website` (#98). The first run may open a small follow-up PR normalizing the seed to the generator's exact output. 🤖 AI-assisted (Claude). Disclosed per org policy. Co-Authored-By: Claude <noreply@anthropic.com>
wtclaude added 1 commit 2026-07-22 21:22:22 +00:00
ci(docs): auto-sync PROJECT_TREE.md to the docs repo on push to main
All checks were successful
PR Checks / android-build (pull_request) Successful in 2m23s
ae170670d9
Add a sync-project-tree workflow that regenerates this repo's tracked-file
tree and opens (or force-updates) a PR against RunicGateway/docs whenever the
layout on main changes. Never writes to the docs repo's main directly. Reuses
the existing REGISTRY_USER / REGISTRY_TOKEN secrets. Tree rendering lives in
.gitea/scripts/gen_tree.py (deterministic, dirs-first ordering).

Co-Authored-By: Claude <noreply@anthropic.com>
whitlocktech approved these changes 2026-07-22 21:24:27 +00:00
whitlocktech scheduled this pull request to auto merge when all checks succeed 2026-07-22 21:24:31 +00:00
whitlocktech merged commit f3da6ea618 into main 2026-07-22 21:24:51 +00:00
whitlocktech deleted branch chore/sync-project-tree-ci 2026-07-22 21:24:51 +00:00
Sign in to join this conversation.
No description provided.