Skip to content

Commit 765ba64

Browse files
committed
fix(ci): replace pipe-to-head with --max-count to avoid SIGPIPE under pipefail
Using `git log ... | head -n 25` causes SIGPIPE when head closes the pipe early, which fails the Discord notification step under `set -o pipefail`. Switching to `--max-count=25` avoids the pipe entirely.
1 parent 85b4a06 commit 765ba64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ jobs:
361361
COMPARE_URL="https://github.com/${REPO}/releases/tag/${TAG}"
362362
fi
363363
364-
COMMITS=$(git log "$RANGE" --pretty=format:'- %s (%h)' --no-merges | head -n 25)
364+
COMMITS=$(git log "$RANGE" --pretty=format:'- %s (%h)' --no-merges --max-count=25)
365365
[[ -z "$COMMITS" ]] && COMMITS="- (no commits found)"
366366
367367
COUNT=$(git rev-list --count --no-merges "$RANGE" 2>/dev/null || echo 0)

0 commit comments

Comments
 (0)