Skip to content

feat(site): add the canonical docs-dispatch workflow (RIG-9080) - #71

Merged
mattwilkinsonn merged 2 commits into
web/rig-9081-add-an-hk-pre-push-hook-that-runs-the-cifrom
web/rig-9080-add-the-canonical-docs-dispatch-workflow
Nov 11, 2026
Merged

mattwilkinsonn merged 2 commits into
web/rig-9081-add-an-hk-pre-push-hook-that-runs-the-cifrom
web/rig-9080-add-the-canonical-docs-dispatch-workflow

Conversation

@rigel-mintaka

@rigel-mintaka rigel-mintaka commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

This PR is part of a stack containing 2 PRs:

  1. main
  2. chore(hooks): add an hk pre-push hook that runs the CI checks (RIG-9081) #70
  3. "feat(site): add the canonical docs-dispatch workflow (RIG-9080)" (this PR)

Summary

Adds the canonical docs-dispatch workflow at site/dispatch/docs-dispatch.yml. Each public source repo will copy it byte for byte. On a docs change to its main, the copy triggers a rebuild of this site.

  • The workflow is the code-docs bundling design's version, plus a name: line to match this repo's workflows.
  • site/scripts/dispatch-workflow.test.ts checks:
    • the trigger is a push to main only
    • environment: main and permissions: {}
    • the App token wiring
    • every path pattern is brace-free and compiles
    • each image type has a lower- and an upper-case pattern
    • sample paths match or do not match as expected

Copying it into source repos waits on the dispatch App and its environment secrets.

Verification

  • bun test site/scripts/dispatch-workflow.test.ts: 12 pass, 0 fail.
  • Red run: an added {png,jpg} pattern turned 8 cases red.
  • The YAML is identical to the design's block, apart from the name: line.
  • biome check and rumdl check README.md: clean.

Risks

  • None at runtime. The file sits outside .github/workflows, so it never runs in this repo.

Refs RIG-9080

Co-authored-by: Matt Wilkinson matt@rigel.build

Co-authored-by: Matt Wilkinson <matt@rigel.build>
@linear-code

linear-code Bot commented Nov 10, 2026

Copy link
Copy Markdown

RIG-9080

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Rigel public design docs preview: https://web-rig-9080-add-the-canonic.docs-2ui.pages.dev

Deployed from web/rig-9080-add-the-canonical-docs-dispatch-workflow at a0410a5.

Co-authored-by: Matt Wilkinson <matt@rigel.build>
@rigel-mintaka

Copy link
Copy Markdown
Contributor Author

Review round 1 on 7bf98fee: 0 high, 0 medium, 3 low.

  • Low: the token scope was not asserted. Fixed in a0410a50. The test now checks the action, owner: RigelBuild, repositories: docs, and that permission-actions: write is the only permission input.
  • Low: the dispatch command's target was not asserted. Fixed in a0410a50. The test now pins the exact gh workflow run deploy.yml --repo RigelBuild/docs --ref main.
  • Low: deploy.yml needs workflow_dispatch before any source repo copies this. No change here. T10 adds the trigger, and the copies are ordered after T10 and T12.

Interdiff a0410a50 (test only, +13): widening repositories turns the test red, and so does changing --ref. Restored: 12 pass, 0 fail. Biome is clean.

All-clear on a0410a50c29c42473ce125fb838e30f5b79db0ba.

@rigel-mintaka
rigel-mintaka marked this pull request as ready for review November 10, 2026 04:59
@mattwilkinsonn
mattwilkinsonn added this pull request to stack #72 November 11, 2026 00:12
@mattwilkinsonn
mattwilkinsonn merged commit e6a02cc into main Nov 11, 2026
2 checks passed
@mattwilkinsonn
mattwilkinsonn deleted the web/rig-9080-add-the-canonical-docs-dispatch-workflow branch November 11, 2026 00:13
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.

2 participants