mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-03-08 13:19:05 +00:00
fix
This commit is contained in:
parent
4583158cf5
commit
6aa2057202
9
.github/workflows/github-release.yml
vendored
9
.github/workflows/github-release.yml
vendored
@ -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."
|
||||
|
Loading…
x
Reference in New Issue
Block a user