Merge pull request #740 from flatcar/krnowak/fix-changelog-generation

.github: Fix changelog generation
This commit is contained in:
Krzesimir Nowak 2023-04-25 12:06:37 +02:00 committed by GitHub
commit 707b110021
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -118,6 +118,8 @@ function generate_update_changelog() {
file="changelog/updates/$(date '+%Y-%m-%d')-${update_name}-${version}-update.md" file="changelog/updates/$(date '+%Y-%m-%d')-${update_name}-${version}-update.md"
pushd "${SDK_OUTER_TOPDIR}"
if [[ -d changelog/updates ]]; then if [[ -d changelog/updates ]]; then
printf '%s %s ([%s](%s)' '-' "${name}" "${version}" "${url}" > "${file}" printf '%s %s ([%s](%s)' '-' "${name}" "${version}" "${url}" > "${file}"
if [[ $# -gt 0 ]]; then if [[ $# -gt 0 ]]; then
@ -131,6 +133,8 @@ function generate_update_changelog() {
fi fi
echo ')' >> "${file}" echo ')' >> "${file}"
fi fi
popd
} }
# Regenerates manifest for given package, and commits changes made for # Regenerates manifest for given package, and commits changes made for