🐛 fix(ci): fix YAML parse error in release workflow changelog builder

This commit is contained in:
sanjibdevnathlabs
2026-03-13 14:34:03 +05:30
parent f1e1f4cbab
commit ace834ea59
+12 -20
View File
@@ -91,26 +91,18 @@ jobs:
FIXES=$(echo "$SUBJECTS" | grep -iE "^(fix|🐛)" || true) FIXES=$(echo "$SUBJECTS" | grep -iE "^(fix|🐛)" || true)
OTHERS=$(echo "$SUBJECTS" | grep -viE "^(feat|feature|✨|fix|🐛|chore\(release\))" | grep -viE "BREAKING" || true) OTHERS=$(echo "$SUBJECTS" | grep -viE "^(feat|feature|✨|fix|🐛|chore\(release\))" | grep -viE "BREAKING" || true)
if [ -n "$BREAKING" ]; then add_section() {
CHANGELOG="${CHANGELOG} local header="$1"
### ⚠️ Breaking Changes local items="$2"
$(echo "$BREAKING" | sed 's/^/- /')" if [ -n "$items" ]; then
fi CHANGELOG="$(printf '%s\n\n%s\n%s' "$CHANGELOG" "$header" "$(echo "$items" | sed 's/^/- /')")"
if [ -n "$FEATURES" ]; then fi
CHANGELOG="${CHANGELOG} }
### ✨ Features
$(echo "$FEATURES" | sed 's/^/- /')" add_section "### ⚠️ Breaking Changes" "$BREAKING"
fi add_section "### ✨ Features" "$FEATURES"
if [ -n "$FIXES" ]; then add_section "### 🐛 Bug Fixes" "$FIXES"
CHANGELOG="${CHANGELOG} add_section "### 📦 Other Changes" "$OTHERS"
### 🐛 Bug Fixes
$(echo "$FIXES" | sed 's/^/- /')"
fi
if [ -n "$OTHERS" ]; then
CHANGELOG="${CHANGELOG}
### 📦 Other Changes
$(echo "$OTHERS" | sed 's/^/- /')"
fi
echo "bump=$BUMP" >> "$GITHUB_OUTPUT" echo "bump=$BUMP" >> "$GITHUB_OUTPUT"
echo "new_version=$NEW_VERSION" >> "$GITHUB_OUTPUT" echo "new_version=$NEW_VERSION" >> "$GITHUB_OUTPUT"