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: |
|
run: |
|
||||||
YESTERDAY=$(date -u --date="yesterday" +%Y-%m-%d)
|
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" '
|
awk -v date="## $YESTERDAY" '
|
||||||
$0 ~ date {found=1; print; next}
|
$0 ~ date {found=1; print; next}
|
||||||
found && /^## [0-9]{4}-[0-9]{2}-[0-9]{2}/ {exit}
|
found && /^## [0-9]{4}-[0-9]{2}-[0-9]{2}/ {exit}
|
||||||
found {print}
|
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
|
echo "=== Extracted Changelog ==="
|
||||||
head -n 10 changelog_tmp.md # Debugging: Print first 10 lines
|
cat changelog_tmp.md
|
||||||
|
echo "==========================="
|
||||||
|
|
||||||
if [ ! -s changelog_tmp.md ]; then
|
if [ ! -s changelog_tmp.md ]; then
|
||||||
echo "No changes found for $YESTERDAY, skipping release."
|
echo "No changes found for $YESTERDAY, skipping release."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user