From 58dd0568e91041e44db2f7c4ae7395686b4b2a3f Mon Sep 17 00:00:00 2001 From: Kjeld Schouten-Lebbing Date: Wed, 21 Dec 2022 22:44:24 +0100 Subject: [PATCH] feat(docs): reintroduce doc-index fancy buttons/shields --- .github/workflows/charts-release.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/charts-release.yaml b/.github/workflows/charts-release.yaml index 6fab15eea17..a2786a5d8d1 100644 --- a/.github/workflows/charts-release.yaml +++ b/.github/workflows/charts-release.yaml @@ -108,7 +108,9 @@ jobs: touch website/docs/charts/${train}/${chart}/index.md echo "# ${chart}" >> website/docs/charts/${train}/${chart}/index.md echo "" >> website/docs/charts/${train}/${chart}/index.md - echo "## App Description" >> website/docs/charts/${train}/${chart}/index.md + version=$(cat charts/${train}/${chart}/Chart.yaml | grep "^version: " | awk -F" " '{ print $2 }') + appversion=$(cat charts/${train}/${chart}/Chart.yaml | grep "^appVersion: " | awk -F" " '{ print $2 }') + 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/docs/charts/${train}/${chart}/index.md echo "" >> website/docs/charts/${train}/${chart}/index.md cat charts/${train}/${chart}/Chart.yaml | yq .description -r >> website/docs/charts/${train}/${chart}/index.md echo "" >> website/docs/charts/${train}/${chart}/index.md