diff --git a/.github/scripts/build-catalog.sh b/.github/scripts/build-catalog.sh index 246a2f6dfb3..668c499369f 100755 --- a/.github/scripts/build-catalog.sh +++ b/.github/scripts/build-catalog.sh @@ -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) diff --git a/.github/workflows/charts-release.yaml b/.github/workflows/charts-release.yaml index cfd4f1212a1..46ad3263ea3 100644 --- a/.github/workflows/charts-release.yaml +++ b/.github/workflows/charts-release.yaml @@ -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 diff --git a/charts/stable/sonarr/Chart.yaml b/charts/stable/sonarr/Chart.yaml index 948d26c754a..749d5474f09 100644 --- a/charts/stable/sonarr/Chart.yaml +++ b/charts/stable/sonarr/Chart.yaml @@ -1,7 +1,7 @@ kubeVersion: '>=1.24.0-0' apiVersion: v2 name: sonarr -version: 19.0.7 +version: 19.0.8 appVersion: 4.0.0.741 description: Smart PVR for newsgroup and bittorrent users home: https://truecharts.org/charts/stable/sonarr diff --git a/out.test b/out.test deleted file mode 100644 index 6b525335bc8..00000000000 --- a/out.test +++ /dev/null @@ -1,3 +0,0 @@ ---- -title: Helm Security ----