chore(github): debug release notes (#9456)

This commit is contained in:
César Arroba
2025-12-04 12:07:02 +01:00
committed by GitHub
parent 85cb39af28
commit 4a5801c519
+12
View File
@@ -154,6 +154,12 @@ jobs:
return
fi
echo "DEBUG: Extracting from $file for version $version"
echo "DEBUG: Looking for pattern: ^## \[v?${version}\]"
# Show what we're trying to match
grep "^## \[" "$file" | head -3
# Extract changelog section for this version
awk -v version="$version" '
/^## \[v?'"$version"'\]/ { found=1; next }
@@ -161,8 +167,14 @@ jobs:
found && !/^## \[v?'"$version"'\]/ { print }
' "$file" > "$output_file"
echo "DEBUG: Extracted $(wc -l < "$output_file") lines, $(wc -c < "$output_file") bytes"
# Remove --- separators
sed -i '/^---$/d' "$output_file"
echo "DEBUG: After sed: $(wc -l < "$output_file") lines, $(wc -c < "$output_file") bytes"
echo "DEBUG: First 3 lines of output:"
head -3 "$output_file" || echo "(empty)"
}
# Determine if components have changes for this specific release