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:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user