Skip to content

Commit 139d1ec

Browse files
pwt-cdclaude
andcommitted
FIX: Extract only first changelog entry using AWK instead of sed range
- Previous sed range was extracting all changelog entries (v1.0.0 to v3.2.3) - AWK command now stops at second ## [ header, extracting only first entry - This will finally show only v3.2.3 content in Recent Changes section - Resolves issue where multiple versions were being displayed 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent f5cc0c6 commit 139d1ec

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/build-deploy.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,7 @@ jobs:
371371
echo "📋 Extracting latest changelog entry..."
372372
if [ -f "CHANGELOG.md" ]; then
373373
# Get the first changelog entry and format it cleanly like keepachangelog.com
374-
sed -n '/^## \[/,/^## \[/p' CHANGELOG.md | \
375-
sed '$d' | \
374+
awk '/^## \[/{if(count++ > 0) exit} 1' CHANGELOG.md | \
376375
sed 's/🎉\|✨\|🔧\|⬆️\|🏗️\|📊\|🎯\|⚠️\|🐍\|🚀\|🛡️\|🎨\|🧪\|📋\|👥\|💰\|📦\|🔄\|📚//g' | \
377376
sed 's/^## \[\([^]]*\)\] - \([0-9-]*\) - \(.*\)/<h3>\1 - \2<\/h3><p><strong>\3<\/strong><\/p>/' | \
378377
sed 's/^### \(.*\)/<h4>\1<\/h4>/' | \

0 commit comments

Comments
 (0)