Lint and reload / lint (push) Skipped
Built by portal-trainer from plans/uhhm.yaml (uhhm/portal-trainer, runs/uhhm-2026-09-23): the five live buckets keep their state and event names, so every record on the owners' desk stays. New: `trials`, a business trying the trainer on its own workflow, approved by an owner before anything is built (the n8n preview workflow comes later, noted as attended_by); `custody_requests`, what reaches UHHM as the custodian of the redoal network, on a custodians' desk owners can watch. Owners invite into both desks. needs.yaml holds the site to its needs from here on; the lint reads it. Gone from the live site: the starred-repos card, the proposal editor with its file picker and /review/[record], and the /applied, /project and /subscribed followups (now /received/<need>; the unsubscribe move is /decide/subscribe). The pins move to v0.3.42: `invite:` and `attended_by` need a portal newer than the v0.3.36 this site runs. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
42 lines
1.5 KiB
YAML
42 lines
1.5 KiB
YAML
name: Lint and reload
|
|
|
|
# Lint runs on PRs too - it's the status check branch protection
|
|
# requires before the development-commit automation's PRs may merge
|
|
# (merge_when_checks_succeed). The reload only ever fires on a push
|
|
# that actually landed on main.
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: bare
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
# iris (uhhm/iris) is the lint: it reads content with the portal
|
|
# release it is pinned to, so IRIS_RELEASE should match the portal
|
|
# this site runs (PORTAL_RELEASE in deploy.yml).
|
|
- name: Lint questions
|
|
env:
|
|
IRIS_RELEASE: v0.3.42
|
|
run: |
|
|
# The checkout is on a noexec mount for this runner; the cargo
|
|
# target dir is where it may run what it fetched.
|
|
bin="/var/local/cargo-target/iris-$IRIS_RELEASE"
|
|
[ -x "$bin" ] || { curl -sfL "${{ github.server_url }}/uhhm/iris/releases/download/$IRIS_RELEASE/iris" -o "$bin" && chmod +x "$bin"; }
|
|
"$bin" check --path questions
|
|
|
|
reload:
|
|
runs-on: bare
|
|
needs: lint
|
|
if: github.event_name == 'push'
|
|
steps:
|
|
# Tells every running portal instance to re-fetch and atomically
|
|
# swap in the new content - see content::watch_for_reload in the
|
|
# portal repo. Fire and forget: no reply expected, no payload
|
|
# needed (the subject alone is the whole message).
|
|
- name: Tell portal to reload content
|
|
run: nats pub portal.content.reload '' --server "nats://infra:${{ secrets.NATS_TOKEN }}@127.0.0.1:4222"
|