This commit is contained in:
Stavros kois 2024-05-12 20:08:37 +03:00
parent e4a8978f13
commit 8db53d0bf6
No known key found for this signature in database
GPG Key ID: 52FD8F5EE0A731BB
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash
file_path="$1"
base_cmd="go-yq --front-matter=process"
base_cmd="yq --front-matter=process"
# Check if the file has valid front matter
is_empty() {

View File

@ -203,13 +203,13 @@ jobs:
yq -i --front-matter=process ".title = ${chart}" website/src/content/docs/charts/${train}/${chart}/index.md
echo -e "---\n" >> website/src/content/docs/charts/${train}/${chart}/index.md
echo "Gathering data..."
# Gather data
version=$(yq '.version' charts/${train}/${chart}/Chart.yaml)
appversion=$(yq '.appVersion' charts/${train}/${chart}/Chart.yaml)
description=$(yq -r '.description' charts/${train}/${chart}/Chart.yaml)
sources=$(yq -r '.sources' charts/${train}/${chart}/Chart.yaml)
echo "Adding the data to the index.md file..."
# Add the data to the index.md file
echo '![Version: '"${version}"'](https://img.shields.io/badge/Version-'"${version}"'-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: '"${appversion}"'](https://img.shields.io/badge/AppVersion-'"${appversion}"'-informational?style=flat-square)' >> website/src/content/docs/charts/${train}/${chart}/index.md
echo "" >> website/src/content/docs/charts/${train}/${chart}/index.md
echo -e "$description\n" >> website/src/content/docs/charts/${train}/${chart}/index.md