From 8db53d0bf6d5816fb7367dff66847e4eaf0ffd49 Mon Sep 17 00:00:00 2001 From: Stavros kois Date: Sun, 12 May 2024 20:08:37 +0300 Subject: [PATCH] hmm --- .github/scripts/frontmatter.sh | 2 +- .github/workflows/charts-release.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/scripts/frontmatter.sh b/.github/scripts/frontmatter.sh index 4383cf34e43..001c9f2199a 100755 --- a/.github/scripts/frontmatter.sh +++ b/.github/scripts/frontmatter.sh @@ -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() { diff --git a/.github/workflows/charts-release.yaml b/.github/workflows/charts-release.yaml index f81204923d1..7539d89abd9 100644 --- a/.github/workflows/charts-release.yaml +++ b/.github/workflows/charts-release.yaml @@ -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