Skip to content

ci(versions): fan out org-changed dispatch to displayxr-website#399

Merged
dfattal merged 1 commit into
mainfrom
feat/website-org-changed-dispatch
Jun 3, 2026
Merged

ci(versions): fan out org-changed dispatch to displayxr-website#399
dfattal merged 1 commit into
mainfrom
feat/website-org-changed-dispatch

Conversation

@dfattal
Copy link
Copy Markdown
Collaborator

@dfattal dfattal commented Jun 3, 2026

Phase 2 of the website org-sync system (full design: displayxr-website/docs/org-sync.md).

What

After any versions.json bump commits, fire a repository_dispatch (org-changed) at displayxr-website so the site re-pulls org data (versions, demo cards, repo list) within ~1 min instead of waiting for its daily cron. The website's sync-org.yml regenerates and direct-commits the refresh to its own main (it does not open a PR), so this needs no org-wide "Actions may create PRs" policy.

Added to both bump paths:

  • versions-bump.yml — sibling releases (shell / leia / mcp / demos)
  • build-windows.ymlBumpVersionsJsonOnTag — runtime self-bump on tag

Each new step:

  • uses peter-evans/repository-dispatch@v3, guarded by the same "did we actually bump" condition as the commit step;
  • runs after the push + installer mirror with continue-on-error: true, so a website hiccup can never fail a real version bump;
  • sends {field, tag, source_repo} for log context (the website ignores the payload and regenerates wholesale).

displayxr-website added to the publish-bot App token repositories: list in both jobs. Fan-out documented in docs/specs/runtime/versions-json-autobump.md.

Prereqs

  • The displayxr-publish-bot App must be installed on displayxr-website with contents write (org-wide install → already covered).
  • displayxr-website's sync-org.yml listens for org-changed — already on its main.

Not exercised until next release

Workflow-only; the dispatch first fires on the next component/runtime release. The website's daily cron is the backstop meanwhile.

🤖 Generated with Claude Code

Phase 2 of the website org-sync. After any versions.json bump commits,
nudge displayxr-website to re-pull org data so displayxr.org reflects a
release within ~1 min instead of waiting for the website's daily cron.

- versions-bump.yml (sibling releases: shell/leia/mcp/demos) and
  build-windows.yml BumpVersionsJsonOnTag (runtime self-bump) each gain a
  peter-evans/repository-dispatch@v3 step firing event-type org-changed,
  guarded by the same did-we-bump condition as the commit step.
- continue-on-error + runs after push/mirror: a website hiccup can never
  fail a real version bump.
- displayxr-website added to the publish-bot App token repositories list
  in both jobs.
- Documented the fan-out in versions-json-autobump.md.

Website side (scripts/sync-org.mjs + sync-org.yml) already on
displayxr-website main. Design: displayxr-website/docs/org-sync.md.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@dfattal dfattal force-pushed the feat/website-org-changed-dispatch branch from 6f021fb to e234662 Compare June 3, 2026 07:55
@dfattal dfattal merged commit 53033a8 into main Jun 3, 2026
22 checks passed
@dfattal dfattal deleted the feat/website-org-changed-dispatch branch June 3, 2026 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant