fix(ci): prevent changelog mistakes

This commit is contained in:
Kjeld Schouten-Lebbing
2022-11-10 20:59:21 +01:00
parent 5c5345c0bd
commit 82046b4021
3 changed files with 7 additions and 5 deletions
+2 -2
View File
@@ -78,8 +78,8 @@ patch_apps() {
# Copy changelog from website
cp -rf "website/docs/charts/${train}/${chart}/CHANGELOG.md" "${target}/CHANGELOG.md" 2>/dev/null || :
sed -i '1d' "${target}/CHANGELOG.md"
sed -i '1s/^/*for the complete changelog, please refer to the website*\n\n/' "website/docs/charts/${train}/${chart}/CHANGELOG.md"
sed -i '1s/^/**Important:**\n/' "website/docs/charts/${train}/${chart}/CHANGELOG.md"
sed -i '1s/^/*for the complete changelog, please refer to the website*\n\n/' "${target}/CHANGELOG.md"
sed -i '1s/^/**Important:**\n/' "${target}/CHANGELOG.md"
sed -i '100,$ d' "${target}/CHANGELOG.md" || :
# Generate SCALE App description file
cat ${target}/Chart.yaml | yq .description -r >> ${target}/app-readme.md