Skip to content

ci: dispatch a mirror refresh to just-buildit.github.io on push to main - #13

Open
hunterdsp wants to merge 1 commit into
mainfrom
ci/trigger-mirror-dispatch
Open

ci: dispatch a mirror refresh to just-buildit.github.io on push to main#13
hunterdsp wants to merge 1 commit into
mainfrom
ci/trigger-mirror-dispatch

Conversation

@hunterdsp

Copy link
Copy Markdown
Contributor

Summary

`just-buildit.github.io`'s `mirror.yml` supports a `repository_dispatch: [mirror]` trigger for an immediate refresh, but nothing anywhere ever fires it — `get-jb.sh`/`just-runit` only ever refresh on the daily 06:00 UTC cron, up to ~24h stale after a push here.

  • New `trigger-mirror` job: gated on `ci-passed` succeeding, push-to-`main` only (never runs on PRs). Fires the dispatch via `gh api repos/just-buildit/just-buildit.github.io/dispatches -f event_type=mirror`.
  • Requires an org-level `MIRROR_DISPATCH_TOKEN` secret (a PAT with repo access to `just-buildit.github.io`) to actually succeed — not a required check, so it's a harmless no-op failure until that secret exists, never blocks this repo's own CI.
  • Companion PRs open on `just-makeit` and `just-buildit` adding the same job.

Test plan

  • YAML validated (`python3 -c "import yaml; yaml.safe_load(...)"`)
  • Job correctly scoped to push-to-main only, depends on ci-passed's actual result

mirror.yml's repository_dispatch: [mirror] trigger existed but nothing
ever fired it -- get-jb.sh/just-runit only refreshed on the daily
06:00 UTC cron, up to ~24h stale after a push here. New trigger-mirror
job (gated on ci-passed, push-to-main only) fires the dispatch via
`gh api repos/just-buildit/just-buildit.github.io/dispatches`.

Requires an org-level MIRROR_DISPATCH_TOKEN secret (a PAT with repo
access to just-buildit.github.io) -- not a required check, so this is
a no-op failure until that secret exists, never blocks this repo's CI.
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