Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions .github/workflows/follow-sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
20 changes: 7 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading