Files
questions/.gitea/workflows/lint-and-reload.yml
T
2026-08-05 07:20:18 +02:00

22 lines
635 B
YAML

name: Lint and reload
on:
push:
branches: [main]
jobs:
lint-and-reload:
runs-on: bare
steps:
- uses: actions/checkout@v4
- name: Lint questions
run: bash lint.sh questions
# 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"