chore(sonarr): bump

This commit is contained in:
Stavros kois
2023-12-31 19:29:04 +02:00
parent a3c451916d
commit d9283f4828
4 changed files with 8 additions and 6 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ 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 [[ 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)
+6 -1
View File
@@ -211,7 +211,12 @@ jobs:
# 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"
sed -i '1s/^/---\ntitle: Changelog\n---\n\n/' "website/docs/charts/${train}/${chart}/CHANGELOG.md" || echo "failed to add changelog header..."
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..."
sed -i '1s/^/---\ntitle: Changelog\n---\n\n/' "website/docs/charts/${train}/${chart}/CHANGELOG.md" || echo "failed to add changelog header..."
fi
echo "Creating index.md..."
touch website/docs/charts/${train}/${chart}/index.md