3 Commits

Author SHA1 Message Date
Donavan Fritz 591fb5b5d6 auto-log: fetch failing-job log from Gitea API into the details block
New optional inputs (all default to off / safe):
  - auto-log: when true and details is empty, fetch and render the run's
    failing-job log via /api/v1/repos/<repo>/actions/jobs/<id>/logs.
  - token: defaults to github.token (per-run, repo-scoped). Overridable.
  - log-lines: tail-length fallback when no ::error:: annotation present.

Selection heuristic: if any line has ::error::, return those + 12 lines of
context above each (merged windows). Otherwise the last `log-lines` lines.
Timestamp prefixes (act_runner's leading ISO-8601 + Z) are stripped.

The details block already existed; this just makes it cheap for failure
emails to surface the actual build error inline instead of forcing the
reader to click "view run →".

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
v1
2026-05-28 14:19:32 -05:00
Donavan Fritz a1a09d988e fix: pass local_hostname to smtplib so EHLO is FQDN-shaped
Gitea runner pods don't set setHostnameAsFQDN, so socket.getfqdn() returns
the single-label pod name. Stalwart's reject-non-fqdn rule (mail.md
<smtp-from-k8s-pod>) refuses the EHLO before MAIL FROM. Pass an explicit
FQDN to keep the action self-contained.
2026-05-13 09:22:04 -07:00
Donavan Fritz d51c089112 initial: notify-email composite action
Fritzlab-themed CI mail action: HTML (inline styles, dark palette) +
plain-text alternative, relayed via mail.fritzlab.net:25 trusted-CIDR rule.
Auto-injects repo/branch/SHA/workflow/run from github context. Status drives
accent + subject prefix (failure/success/info).
2026-05-13 09:17:11 -07:00