Skip to content

Commit 12b8c84

Browse files
pwt-cdclaude
andcommitted
SIMPLIFY: Extract changelog entry verbatim with just emoji removal
- Remove overly complex AWK and sed pipelines - Simple extraction: get latest changelog entry and remove emojis only - Keep original markdown formatting for natural appearance - No HTML conversion - let the browser render markdown naturally 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 05596c4 commit 12b8c84

File tree

1 file changed

+6
-46
lines changed

1 file changed

+6
-46
lines changed

.github/workflows/build-deploy.yml

Lines changed: 6 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -367,54 +367,14 @@ jobs:
367367
sed "s|{{VERSION}}|${{ needs.extract-version.outputs.version }}|g" README.md > ./pages-content/README.md
368368
echo "✅ README.md processed with version ${{ needs.extract-version.outputs.version }}"
369369
370-
# Extract the most recent changelog entry (simple keepachangelog.com style)
370+
# Extract the most recent changelog entry verbatim (just remove emojis)
371371
echo "📋 Extracting latest changelog entry..."
372372
if [ -f "drafts/current/specifications/CHANGELOG.md" ]; then
373-
# Simple extraction - just get version and main sections, remove emojis
374-
awk '
375-
/^## \[/{
376-
if (found) exit;
377-
found=1;
378-
# Extract version and date
379-
match($0, /\[(.*)\].*- (.*)/, arr);
380-
print "<p><strong>Version " arr[1] "</strong> - " arr[2] "</p>";
381-
next
382-
}
383-
found && /^## \[/ {exit}
384-
found && /^### / {
385-
# Clean section headers - remove emojis and extra formatting
386-
gsub(/[🎉✨🔧⬆️🏗️📊🎯⚠️🐍🚀🛡️🎨🧪📋👥💰📦🔄📚]/, "");
387-
gsub(/\*\*/, "");
388-
gsub(/^### */, "");
389-
if ($0 !~ /^$/ && NF > 0) {
390-
print "<h4>" $0 "</h4><ul>";
391-
in_section = 1;
392-
}
393-
next
394-
}
395-
found && /^- / && in_section {
396-
# Simple bullet points - remove emojis, keep basic formatting
397-
gsub(/[🎉✨🔧⬆️🏗️📊🎯⚠️🐍🚀🛡️🎨🧪📋👥💰📦🔄📚]/, "");
398-
gsub(/\*\*([^*]+)\*\*/, "<strong>\\1</strong>");
399-
sub(/^- */, "");
400-
if (NF > 0) print "<li>" $0 "</li>";
401-
next
402-
}
403-
found && /^$/ && in_section {
404-
if (in_section) {print "</ul>"; in_section = 0;}
405-
next
406-
}
407-
found && !/^#/ && !/^- / && NF > 0 {
408-
if (in_section) {print "</ul>"; in_section = 0;}
409-
# Description paragraphs
410-
gsub(/[🎉✨🔧⬆️🏗️📊🎯⚠️🐍🚀🛡️🎨🧪📋👥💰📦🔄📚]/, "");
411-
gsub(/\*\*([^*]+)\*\*/, "<strong>\\1</strong>");
412-
print "<p>" $0 "</p>";
413-
}
414-
END {
415-
if (in_section) print "</ul>";
416-
}
417-
' drafts/current/specifications/CHANGELOG.md > ./pages-content/recent-changes.html
373+
# Get the first changelog entry and remove emojis
374+
sed -n '/^## \[/,/^## \[/p' drafts/current/specifications/CHANGELOG.md | \
375+
sed '$d' | \
376+
sed 's/🎉\|✨\|🔧\|⬆️\|🏗️\|📊\|🎯\|⚠️\|🐍\|🚀\|🛡️\|🎨\|🧪\|📋\|👥\|💰\|📦\|🔄\|📚//g' \
377+
> ./pages-content/recent-changes.html
418378
echo "✅ Latest changelog entry extracted and formatted"
419379
else
420380
echo "<p>No changelog available</p>" > ./pages-content/recent-changes.html

0 commit comments

Comments
 (0)