From 0979f85cc66b1fab9e9ac9c92ebdef98fdf2d474 Mon Sep 17 00:00:00 2001 From: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Date: Thu, 4 Jan 2024 22:29:29 +0200 Subject: [PATCH] fix(ci): dont fail on docs errors Signed-off-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com> --- .github/workflows/charts-release.yaml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/charts-release.yaml b/.github/workflows/charts-release.yaml index d92ddf917f7..5414282c624 100644 --- a/.github/workflows/charts-release.yaml +++ b/.github/workflows/charts-release.yaml @@ -230,16 +230,17 @@ jobs: echo "---" echo "title: some title" echo "---" - fi - echo "Not bad title found, continuing..." - title=$(cat "${file}" | grep "title: " | sed 's/title: //' | head -n 1) - echo "The title is: ${title}" - # Create a markdown link using the file name and title - link="[**${title}**](./${filename})" - echo "The link is: ${link}" - if [ ${filename} != "index.md" ]; then - # Append the link to the index.md file - echo "- ${link}" >> website/docs/charts/${train}/${chart}/index.md + elif + echo "Not bad title found, continuing..." + title=$(cat "${file}" | grep "title: " | sed 's/title: //' | head -n 1) + echo "The title is: ${title}" + # Create a markdown link using the file name and title + link="[**${title}**](./${filename})" + echo "The link is: ${link}" + if [ ${filename} != "index.md" ]; then + # Append the link to the index.md file + echo "- ${link}" >> website/docs/charts/${train}/${chart}/index.md + fi fi done