chore(scripts): fix more

This commit is contained in:
Stavros kois 2023-12-31 20:20:33 +02:00
parent d85f607390
commit 5384582590
No known key found for this signature in database
GPG Key ID: 52FD8F5EE0A731BB
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)

View File

@ -209,9 +209,8 @@ jobs:
echo "Appending SCALE changelog to actual changelog..."
# Append SCALE changelog to actual changelog
sed -i '1d' "website/docs/charts/${train}/${chart}/CHANGELOG.md" || echo "failed to sed 1d changelog..."
cat "charts/${train}/${chart}/app-changelog.md" | cat - "website/docs/charts/${train}/${chart}/CHANGELOG.md" > temp && mv temp "website/docs/charts/${train}/${chart}/CHANGELOG.md"
if grep -q "---\ntitle: Changelog\n---\n\n" "website/docs/charts/${train}/${chart}/CHANGELOG.md"; then
if grep -q "\-\-\-\ntitle: Changelog\n\-\-\-\n\n" "website/docs/charts/${train}/${chart}/CHANGELOG.md"; then
echo "changelog header already exists..."
else
echo "Adding changelog header..."

View File

@ -1,7 +1,7 @@
kubeVersion: '>=1.24.0-0'
apiVersion: v2
name: sonarr
version: 19.0.12
version: 19.0.13
appVersion: 4.0.0.741
description: Smart PVR for newsgroup and bittorrent users
home: https://truecharts.org/charts/stable/sonarr