From 12cf96f6d3f68342923835dd853e7ef8c3f66901 Mon Sep 17 00:00:00 2001 From: Evan Bacon Date: Mon, 8 Jun 2026 17:19:25 -0700 Subject: [PATCH] fix(ci): ensure newline before EOF delimiter in diff summary heredoc The 'Read diff summary' step wrote diff-summary.md to $GITHUB_ENV via a heredoc, but generateDiffSummary() produced a string with no trailing newline. cat then glued the 'EOF' delimiter onto the last content line, so GitHub never matched the closing delimiter and the job failed on every scheduled run (issue #30). Emit an explicit blank line before EOF and write the file with a trailing newline. Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/update.yml | 1 + update/index.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index f2b8cb5..fc9a52b 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -74,6 +74,7 @@ jobs: { echo 'DIFF_SUMMARY<> $GITHUB_ENV fi diff --git a/update/index.ts b/update/index.ts index 3d42312..5e03ce2 100644 --- a/update/index.ts +++ b/update/index.ts @@ -89,7 +89,7 @@ async function run() { const summary = generateDiffSummary(oldSpec, spec); console.log("\nDiff summary:\n" + summary); if (process.env.CI) { - await Bun.write("diff-summary.md", summary); + await Bun.write("diff-summary.md", summary + "\n"); } }