Update charts-release.yaml

Signed-off-by: Kjeld Schouten-Lebbing <kjeld@schouten-lebbing.nl>
This commit is contained in:
Kjeld Schouten-Lebbing 2022-12-17 21:28:43 +01:00 committed by GitHub
parent 2b96f1cdde
commit 1c20a2ee63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -109,10 +109,10 @@ jobs:
echo "" >> website/docs/charts/${train}/${chart}/index.md
# Iterate over all files in the docs directory
for file in website/docs/charts/${train}/${chart}/*; do
for file in charts/${train}/${chart}/docs/*; do
# Extract the file name and first line from each file
filename=$(basename "${file}")
title=$(head -n 1 "${file}" | sed 's/#//')
title=$(head -n 1 "${file}" | sed 's/# //')
# Create a markdown link using the file name and title
link="[${title}](/${filename})"