mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-24 21:11:53 +00:00
chore(github): debug release notes (#9456)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user