chore(scripts): fix more

This commit is contained in:
Stavros kois
2023-12-31 20:20:33 +02:00
parent d85f607390
commit 5384582590
3 changed files with 4 additions and 4 deletions

View File

@@ -96,7 +96,8 @@ patch_apps() {
touch "website/docs/charts/${train}/${chartname}/CHANGELOG.md"
fi
cp -rf "website/docs/charts/${train}/${chartname}/CHANGELOG.md" "${target}/CHANGELOG.md" 2>/dev/null || :
if grep -q "for the complete changelog, please refer to the website" "${target}/CHANGELOG.md"; then
# If changelog is empty, add a notice
if ! grep -q "for the complete changelog, please refer to the website" "${target}/CHANGELOG.md"; then
echo "Adding changelog notice for: ${chartname}"
# Count the frontmatter lines
line_count=$(sed -n '/^---$/,/^---$/p' "${target}/CHANGELOG.md" | wc -l)