fix: correct changelog generation commands
This commit is contained in:
parent
cfea68a301
commit
2ea9980383
|
@ -132,10 +132,16 @@ create_changelog() {
|
||||||
if [[ -z "$standalone" ]]; then
|
if [[ -z "$standalone" ]]; then
|
||||||
echo "Generating changelogs for: ${chartname}"
|
echo "Generating changelogs for: ${chartname}"
|
||||||
# SCALE "Changelog" containing only last change
|
# SCALE "Changelog" containing only last change
|
||||||
git-chglog --next-tag ${chartversion} --tag-filter-pattern ${chartname} --path ${chart} ${chartversion} -o ${chart}/SCALE/CHANGELOG.md
|
git-chglog --next-tag ${chartname}-${chartversion} --tag-filter-pattern ${chartname} --path ${chart} -o ${chart}/SCALE/CHANGELOG.md ${chartname}-${chartversion}
|
||||||
# Append SCALE changelog to actual changelog
|
# Append SCALE changelog to actual changelog
|
||||||
|
|
||||||
|
if [[ -f "${chart}/CHANGELOG.md" ]]; then
|
||||||
|
cat ${chart}/CHANGELOG.md | cat - ${chart}/CHANGELOG.md > temp && mv temp ${chart}/CHANGELOG.md
|
||||||
|
else
|
||||||
|
touch ${chart}/CHANGELOG.md
|
||||||
cat ${chart}/SCALE/CHANGELOG.md | cat - ${chart}/CHANGELOG.md > temp && mv temp ${chart}/CHANGELOG.md
|
cat ${chart}/SCALE/CHANGELOG.md | cat - ${chart}/CHANGELOG.md > temp && mv temp ${chart}/CHANGELOG.md
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
copy_general_docs() {
|
copy_general_docs() {
|
||||||
|
|
Loading…
Reference in New Issue