From f56cec4b474d4340f638abe5c6eb5ecfd8b89a7a Mon Sep 17 00:00:00 2001 From: Stavros kois Date: Sun, 12 May 2024 22:01:40 +0300 Subject: [PATCH] more fixes --- .github/scripts/chart-docs.sh | 10 ++++------ charts/incubator/pingvin-share/Chart.yaml | 2 +- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/scripts/chart-docs.sh b/.github/scripts/chart-docs.sh index 8f3de8f97b4..6deea1f5422 100755 --- a/.github/scripts/chart-docs.sh +++ b/.github/scripts/chart-docs.sh @@ -5,11 +5,9 @@ make_sure_structure_is_there() { local train="$1" local chart="$2" - - if [[ ! -f "website/src/content/docs/charts/${train}/${chart}/CHANGELOG.md" ]]; then - echo "changelog not found, starting with empty changelog..." - touch "website/src/content/docs/charts/${train}/${chart}/CHANGELOG.md" - fi + echo "Checking if website/src/content/docs/charts/${train}/${chart}/CHANGELOG.md exists" + mkdir -p "website/src/content/docs/charts/${train}/${chart}" || echo "chart path already exists, continuing..." + touch "website/src/content/docs/charts/${train}/${chart}/CHANGELOG.md" } keep_safe_docs() { @@ -143,7 +141,7 @@ process_index() { continue fi - title=$(yq '.title' ${file} | head -n 1) + title=$(yq --front-matter=process '.title' ${file} | head -n 1) echo "The title is: ${title}" echo "Generating markdown links" diff --git a/charts/incubator/pingvin-share/Chart.yaml b/charts/incubator/pingvin-share/Chart.yaml index 568e7dacbb4..0ae1445bb97 100644 --- a/charts/incubator/pingvin-share/Chart.yaml +++ b/charts/incubator/pingvin-share/Chart.yaml @@ -33,4 +33,4 @@ sources: - https://github.com/truecharts/charts/tree/master/charts/incubator/pingvin-share - https://hub.docker.com/r/stonith404/pingvin-share type: application -version: 0.0.6 +version: 0.0.7