diff --git a/.github/workflows/charts-release.yaml b/.github/workflows/charts-release.yaml index 918be6141ef..5b8b0c40efa 100644 --- a/.github/workflows/charts-release.yaml +++ b/.github/workflows/charts-release.yaml @@ -240,6 +240,14 @@ jobs: # Extract the file name and first line from each file filename=$(basename "${file}") echo "Found doc file: ${file}" + test_title=$(head -n 1 "${file}" | sed 's/# //') + if [-n ${test_title} ]; then + echo "Doc title should use front matter and not # for title, for example" + echo "---" + echo "title: ${test_title}" + echo "---" + exit 1 + fi title=$(cat "${file}" | grep "title: " | sed 's/title: //') echo "The title is: ${title}" # Create a markdown link using the file name and title