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 <noreply@anthropic.com>
This commit is contained in:
Eric Bailey
2026-06-17 17:36:40 -05:00
parent 09b2fa05b6
commit 1857df1a1f
+3 -2
View File
@@ -59,8 +59,9 @@ jobs:
if [ -z "$notes" ]; then if [ -z "$notes" ]; then
notes="Nightly build — no new commits since the last nightly." notes="Nightly build — no new commits since the last nightly."
fi fi
# TestFlight "What to Test" is capped at 4000 characters # Cap the whole changelog (TestFlight "What to Test" is limited to 4000 characters).
notes=$(printf '%s' "$notes" | cut -c1-3900) # head -c caps the combined stream; cut -c would only cap each line independently.
notes=$(printf '%s' "$notes" | head -c 3900)
{ {
echo "notes<<NOTES_EOF" echo "notes<<NOTES_EOF"
echo "$notes" echo "$notes"