Fix script to update release notes

This commit is contained in:
Anthony Oteri
2023-09-29 14:53:35 -04:00
parent ed84e92112
commit b0239fb049
2 changed files with 12 additions and 1 deletions
+4
View File
@@ -8,3 +8,7 @@
registry which requires authentication will fail. registry which requires authentication will fail.
## Changelog ## Changelog
- v0.1.0
- Additional scripts for managing the release process by Anthony Oteri cfdefb2
+8 -1
View File
@@ -18,4 +18,11 @@
REPO_ROOT=$(git rev-parse --show-toplevel) REPO_ROOT=$(git rev-parse --show-toplevel)
/usr/bin/cat "${REPO_ROOT}/docs/release-notes-template.md" $(/usr/bin/ls "${REPO_ROOT}/docs/changelog*.md" 2>/dev/null | true | sort -rn) | tee "${REPO_ROOT}/RELEASE_NOTES.md" RELEASE_NOTES="${REPO_ROOT}/RELEASE_NOTES.md"
/usr/bin/cat "${REPO_ROOT}/docs/release-notes-template.md" | tee "${RELEASE_NOTES}"
for note in $(/usr/bin/find "${REPO_ROOT}/docs" -name "changelog*.md" -print | sort -rn); do
/usr/bin/cat "${note}" | tee -a "${RELEASE_NOTES}"
echo "" | tee -a "${RELEASE_NOTES}"
echo "" | tee -a "${RELEASE_NOTES}"
done