chore(scripts): fix more
This commit is contained in:
3
.github/scripts/build-catalog.sh
vendored
3
.github/scripts/build-catalog.sh
vendored
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user