1
0
mirror of https://github.com/community-scripts/ProxmoxVE.git synced 2025-03-08 13:19:05 +00:00
This commit is contained in:
CanbiZ 2025-03-01 13:23:44 +01:00 committed by GitHub
parent 4583158cf5
commit 6aa2057202
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,15 +20,16 @@ jobs:
run: |
YESTERDAY=$(date -u --date="yesterday" +%Y-%m-%d)
# Extract exactly the section for YESTERDAY, stopping at the next date
# Extract the changelog section for YESTERDAY, stopping at the next date
awk -v date="## $YESTERDAY" '
$0 ~ date {found=1; print; next}
found && /^## [0-9]{4}-[0-9]{2}-[0-9]{2}/ {exit}
found {print}
' CHANGELOG.md > changelog_tmp.md
' CHANGELOG.md | sed '/^## [0-9]/d' > changelog_tmp.md
# Verify that we extracted only one day's data
head -n 10 changelog_tmp.md # Debugging: Print first 10 lines
echo "=== Extracted Changelog ==="
cat changelog_tmp.md
echo "==========================="
if [ ! -s changelog_tmp.md ]; then
echo "No changes found for $YESTERDAY, skipping release."