From c537410ae69d0fa836241a569a5d83d09f3f2a22 Mon Sep 17 00:00:00 2001 From: Kjeld Schouten-Lebbing Date: Sat, 17 Dec 2022 22:55:57 +0100 Subject: [PATCH] Update charts-release.yaml Signed-off-by: Kjeld Schouten-Lebbing --- .github/workflows/charts-release.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/charts-release.yaml b/.github/workflows/charts-release.yaml index 4a67df75cbe..7c174246752 100644 --- a/.github/workflows/charts-release.yaml +++ b/.github/workflows/charts-release.yaml @@ -109,16 +109,17 @@ jobs: echo "" >> website/docs/charts/${train}/${chart}/index.md # Iterate over all files in the docs directory - for file in charts/${train}/${chart}/docs/*; do + for file in website/docs/charts/${train}/${chart}/*; do # Extract the file name and first line from each file filename=$(basename "${file}") title=$(head -n 1 "${file}" | sed 's/# //') # Create a markdown link using the file name and title link="[${title}](/${filename})" - - # Append the link to the index.md file - echo "${link}" >> website/docs/charts/${train}/${chart}/index.md + if [ ${filename} != "index.md" ]; then + # Append the link to the index.md file + echo "${link}" >> website/docs/charts/${train}/${chart}/index.md + fi done mv -f tmp/website/docs/charts/${train}/${chart}/CHANGELOG.md website/docs/charts/${train}/${chart}/CHANGELOG.md 2>/dev/null || :