-.-
This commit is contained in:
@@ -116,14 +116,14 @@ process_index() {
|
|||||||
|
|
||||||
echo "Adding front matter to index.md..."
|
echo "Adding front matter to index.md..."
|
||||||
echo "---" >>${index_path}
|
echo "---" >>${index_path}
|
||||||
yq -i --front-matter=process '.title="'${chart}'"' ${index_path}
|
go-yq -i --front-matter=process '.title="'${chart}'"' ${index_path}
|
||||||
echo -e "---\n" >>${index_path}
|
echo -e "---\n" >>${index_path}
|
||||||
|
|
||||||
echo "Getting data from Chart.yaml..."
|
echo "Getting data from Chart.yaml..."
|
||||||
version=$(yq '.version' ${chart_yaml_path})
|
version=$(go-yq '.version' ${chart_yaml_path})
|
||||||
appversion=$(yq '.appVersion' ${chart_yaml_path})
|
appversion=$(go-yq '.appVersion' ${chart_yaml_path})
|
||||||
description=$(yq -r '.description' ${chart_yaml_path})
|
description=$(go-yq -r '.description' ${chart_yaml_path})
|
||||||
sources=$(yq -r '.sources' ${chart_yaml_path})
|
sources=$(go-yq -r '.sources' ${chart_yaml_path})
|
||||||
|
|
||||||
echo "Adding the data to the index.md file..."
|
echo "Adding the data to the index.md file..."
|
||||||
echo '  ' >>${index_path}
|
echo '  ' >>${index_path}
|
||||||
@@ -149,7 +149,7 @@ process_index() {
|
|||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
title=$(yq --front-matter=process '.title' ${file} | head -n 1)
|
title=$(go-yq --front-matter=process '.title' ${file} | head -n 1)
|
||||||
echo "The title is: ${title}"
|
echo "The title is: ${title}"
|
||||||
|
|
||||||
echo "Generating markdown links"
|
echo "Generating markdown links"
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
[ "$STRICT" == 'true' ] && set -e
|
[ "$STRICT" == 'true' ] && set -e
|
||||||
|
|
||||||
file_path="$1"
|
file_path="$1"
|
||||||
base_cmd="yq --front-matter=process"
|
base_cmd="go-yq --front-matter=process"
|
||||||
# Check if the file has valid front matter
|
# Check if the file has valid front matter
|
||||||
|
|
||||||
is_empty() {
|
is_empty() {
|
||||||
|
|||||||
@@ -156,7 +156,7 @@ jobs:
|
|||||||
|
|
||||||
export DEBUG=true
|
export DEBUG=true
|
||||||
export STRICT=true
|
export STRICT=true
|
||||||
yq --version
|
go-yq --version
|
||||||
|
|
||||||
for i in "${CHARTS[@]}"
|
for i in "${CHARTS[@]}"
|
||||||
do
|
do
|
||||||
|
|||||||
@@ -33,4 +33,4 @@ sources:
|
|||||||
- https://github.com/truecharts/charts/tree/master/charts/incubator/pingvin-share
|
- https://github.com/truecharts/charts/tree/master/charts/incubator/pingvin-share
|
||||||
- https://hub.docker.com/r/stonith404/pingvin-share
|
- https://hub.docker.com/r/stonith404/pingvin-share
|
||||||
type: application
|
type: application
|
||||||
version: 0.0.9
|
version: 0.0.10
|
||||||
|
|||||||
Reference in New Issue
Block a user