From 1857df1a1f4b0b3877f80ac0a53c70e05855f672 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Wed, 17 Jun 2026 17:36:40 -0500 Subject: [PATCH] Cap nightly changelog by total length, not per line cut -c1-3900 caps each line independently, so a busy nightly window could still exceed Apple's 4000-char "What to Test" limit (and flood Slack). Use head -c 3900 to cap the combined changelog stream. Co-Authored-By: Claude Opus 4.8 --- .github/workflows/nightly-build.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nightly-build.yml b/.github/workflows/nightly-build.yml index ddfebeb2b5..b9e6ea0a91 100644 --- a/.github/workflows/nightly-build.yml +++ b/.github/workflows/nightly-build.yml @@ -59,8 +59,9 @@ jobs: if [ -z "$notes" ]; then notes="Nightly build — no new commits since the last nightly." fi - # TestFlight "What to Test" is capped at 4000 characters - notes=$(printf '%s' "$notes" | cut -c1-3900) + # Cap the whole changelog (TestFlight "What to Test" is limited to 4000 characters). + # head -c caps the combined stream; cut -c would only cap each line independently. + notes=$(printf '%s' "$notes" | head -c 3900) { echo "notes<