From cd975184ce10cdf81460bb2616cd390f7b104f6f Mon Sep 17 00:00:00 2001 From: Henrik Klee Date: Wed, 2 Dec 2026 01:32:04 +0800 Subject: [PATCH] Docs: packages follow releases on their schedule, with no token No source repository announces its releases here any more: there is no cross-repository token (ORCHARD_DISPATCH_TOKEN). Follow sources' scheduled run finds every release within 20 minutes; a maintainer can still send source-updated by hand to skip the wait. Assisted-by: LLM Signed-off-by: Henrik Klee --- .github/workflows/follow-sources.yml | 9 ++++----- README.md | 20 +++++++------------- 2 files changed, 11 insertions(+), 18 deletions(-) diff --git a/.github/workflows/follow-sources.yml b/.github/workflows/follow-sources.yml index 52d5926..e2e2101 100644 --- a/.github/workflows/follow-sources.yml +++ b/.github/workflows/follow-sources.yml @@ -4,11 +4,10 @@ name: Follow sources # - a source repository that a package follows (packages/NAME/source.json, # "track") made a release: the pin moves to that release's tag, is committed # to main, and the build builds that package. Pushes to a source publish -# nothing. Found by polling, and at once when the source repository sends -# `source-updated` (repository_dispatch with client_payload -# {"repo": "OrchardLinux/omarchy-a", "tag": "v0.4.0"}), which orchard's and -# Omarchy A's release jobs do after publishing (README, "How packages -# follow"); +# nothing. Found by polling, and at once when a maintainer sends +# `source-updated` by hand (repository_dispatch with client_payload +# {"repo": "OrchardLinux/omarchy-a", "tag": "v0.4.0"}; README, "How +# packages follow"); no source repository sends it; # - orchard made a release: the kernel packages (linux-orchard-PLATFORM) move # to it, as `tools/pkgrepo orchard-release VERSION` moves them, committed and # built the same way. At once on `source-updated` with diff --git a/README.md b/README.md index dec6441..6a63904 100644 --- a/README.md +++ b/README.md @@ -143,25 +143,19 @@ installer with that release.) How: the workflow *Follow sources* moves the pin (commit or orchard version, checksums, `pkgver`), commits that to `main` and starts the build, which builds -just the packages whose version is new. It does that at once when the source's -release job announces the release, which orchard's and Omarchy A's do right -after publishing: +just the packages whose version is new. Its scheduled run finds the release: +every 20 minutes it compares each source's latest release with the pin, +orchard's included, and moves what is behind. No source repository starts it, +so no cross-repository token is needed. A pin never moves back: a tag older +than the pin, a nightly or a pre-release is ignored. A maintainer who does not +want to wait can announce a release by hand: ```sh gh api repos/OrchardLinux/packages/dispatches -f event_type=source-updated \ -F 'client_payload[repo]=OrchardLinux/orchard' -F 'client_payload[tag]=v0.4.0' ``` -Sending that needs the organisation secret `ORCHARD_DISPATCH_TOKEN` (a -fine-grained token with Actions and Contents read and write on -OrchardLinux/omarchy-a and OrchardLinux/packages). Without it, or when the -announcement is lost, the scheduled run finds the release anyway: every 20 -minutes it compares each source's latest release with the pin, orchard's -included, and moves what is behind. A pin never moves back: a tag older than -the pin, a nightly or a pre-release is ignored. - -To check after a release: *Follow sources* has a run started by -`repository_dispatch` (or a scheduled one) that committed "…: the source's new +To check after a release: *Follow sources* has a run that committed "…: the source's new release" to `main`, the *Build and publish* run after it is green, and `pacman -Si linux-orchard-apple-16k omarchy-a` on a tablet shows the new version.