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:
parent
623e1896aa
commit
48b14f7347
5
.github/workflows/github-release.yml
vendored
5
.github/workflows/github-release.yml
vendored
@ -20,13 +20,16 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
YESTERDAY=$(date -u --date="yesterday" +%Y-%m-%d)
|
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" '
|
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 > 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
|
if [ ! -s changelog_tmp.md ]; then
|
||||||
echo "No changes found for $YESTERDAY, skipping release."
|
echo "No changes found for $YESTERDAY, skipping release."
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user