fix: AFM caller pre-production cleanup (debug removal + timeout)

Merged
EO
4mo ago
+108-10

Pre-production cleanup of the AFM release notes caller workflow.

Changes

Remove debug: 'true' hardcode

Was left in for smoke testing. Verbose AFM sidecar logs on every real release are noise. debug defaults to 'false' in the action.

Add timeout-minutes: 10

Guards against the job queuing forever if the AFM self-hosted runner is offline during a real release.

Notes

  • @v1 pin was already correct — no change needed
  • Fence-strip fix (which caused the broken release_title on first smoke test) is handled in afm-release-notes-action #5

Closes #2092
Closes #2090 (fence-strip fix landed in afm-release-notes-action #5)


Summary by cubic

Wired AFM release notes into the publish workflow via runbot-hq/afm-release-notes-action@main with safe fallbacks. Cleaned up the AFM caller (debug off, 10‑minute timeout) and hardened release creation to avoid injection and temp file leaks.

  • New Features

    • Integrated runbot-hq/afm-release-notes-action@main in publish.yml after tag push; runs only on real releases when no manual release_notes are provided; continue-on-error: true falls back to --generate-notes.
    • Title/notes priority: AFM title > tag; manual notes > AFM body > auto‑generated. Documented tag expression, step ordering, ${{ }} safety, composite‑action runner compatibility, and why @main is safe for this first‑party composite action.
  • Bug Fixes

    • AFM caller: removed hardcoded debug: 'true'; added timeout-minutes: 10 to avoid stuck runs.
    • Create Release: pass AFM outputs via env and write notes to a temp file with --notes-file; added trap EXIT for cleanup.

Summary by CodeRabbit

  • Chores
    • Added a 10-minute limit to the release-notes generation process.
    • Removed unnecessary debug output from release-notes generation.