Skip to content

Commit f407f96

Browse files
Emin017claude
andauthored
fix(ci): skip changelog on first release to avoid body size limit (#12)
When no previous tag exists, git log dumps the entire repo history into release notes, exceeding GitHub's 125000-character limit. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b9b852d commit f407f96

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,13 @@ jobs:
7171
id: notes
7272
run: |
7373
PREV_TAG=$(git describe --tags --abbrev=0 HEAD^ 2>/dev/null || echo "")
74-
if [[ -n "$PREV_TAG" ]]; then
75-
RANGE="${PREV_TAG}..HEAD"
76-
else
77-
RANGE="HEAD"
78-
fi
7974
{
80-
echo "## Changes"
81-
echo ""
82-
git log --oneline --no-merges "$RANGE" | sed 's/^/- /'
83-
echo ""
75+
if [[ -n "$PREV_TAG" ]]; then
76+
echo "## Changes"
77+
echo ""
78+
git log --oneline --no-merges "${PREV_TAG}..HEAD" | sed 's/^/- /'
79+
echo ""
80+
fi
8481
echo "## Checksums"
8582
echo ""
8683
echo '```'

0 commit comments

Comments
 (0)