Skip to content

Commit

Permalink
update to print only if there is new stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
dleviminzi committed Oct 8, 2024
1 parent 18985ad commit 24002f2
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/release-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,16 @@ jobs:
echo "" >> $FILENAME
else
awk -v feats="${{ steps.release.outputs.feats }}" -v fixes="${{ steps.release.outputs.fixes }}" '
/^## Features/ { print; print feats; next }
/^## Fixes/ { print; print fixes; next }
/^## Features/ {
print
if (feats != "") print feats
next
}
/^## Fixes/ {
print
if (fixes != "") print fixes
next
}
{ print }
' "$FILENAME" > "${FILENAME}.tmp" && mv "${FILENAME}.tmp" "$FILENAME"
fi
Expand Down

0 comments on commit 24002f2

Please sign in to comment.