1
0
mirror of https://github.com/community-scripts/ProxmoxVE.git synced 2025-03-08 13:19:05 +00:00

fix release

This commit is contained in:
CanbiZ 2025-03-01 13:20:05 +01:00 committed by GitHub
parent 623e1896aa
commit 48b14f7347
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,13 +20,16 @@ jobs:
run: |
YESTERDAY=$(date -u --date="yesterday" +%Y-%m-%d)
# Extract the changelog section for yesterday, stopping at the next date
# Extract exactly the 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
# Verify that we extracted only one day's data
head -n 10 changelog_tmp.md # Debugging: Print first 10 lines
if [ ! -s changelog_tmp.md ]; then
echo "No changes found for $YESTERDAY, skipping release."
exit 0