mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-15 07:31:36 +01:00
.github: Fix changelog generation
This commit is contained in:
parent
77938e6332
commit
4352fc6323
4
.github/workflows/common.sh
vendored
4
.github/workflows/common.sh
vendored
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user