chore(docs): auto update home on chart.yaml (#3335)
* chore(docs): auto update `home` on chart.yaml * add comment
This commit is contained in:
@@ -4,6 +4,7 @@ set -o nounset
|
|||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
# Designed to ensure the appversion in Chart.yaml is in sync with the primary App tag if found
|
# Designed to ensure the appversion in Chart.yaml is in sync with the primary App tag if found
|
||||||
|
# Also makes sure that home link is pointing to the correct url
|
||||||
sync_tag() {
|
sync_tag() {
|
||||||
local chart="$1"
|
local chart="$1"
|
||||||
local chartname="$2"
|
local chartname="$2"
|
||||||
@@ -26,6 +27,7 @@ sync_tag() {
|
|||||||
tag="${tag%_}"
|
tag="${tag%_}"
|
||||||
tag="${tag%.}"
|
tag="${tag%.}"
|
||||||
sed -i -e "s|appVersion: .*|appVersion: \"${tag}\"|" "${chart}/Chart.yaml"
|
sed -i -e "s|appVersion: .*|appVersion: \"${tag}\"|" "${chart}/Chart.yaml"
|
||||||
|
sed -i -e "s|home: .*|home: \"https:\/\/truecharts.org\/docs\/charts\/${train}\/${chartname}\"|" "${chart}/Chart.yaml"
|
||||||
}
|
}
|
||||||
export -f sync_tag
|
export -f sync_tag
|
||||||
|
|
||||||
|
|||||||
@@ -273,6 +273,7 @@ gen_dh_cat() {
|
|||||||
export -f gen_dh_cat
|
export -f gen_dh_cat
|
||||||
|
|
||||||
# Designed to ensure the appversion in Chart.yaml is in sync with the primary App tag if found
|
# Designed to ensure the appversion in Chart.yaml is in sync with the primary App tag if found
|
||||||
|
# Also makes sure that home link is pointing to the correct url
|
||||||
sync_tag() {
|
sync_tag() {
|
||||||
local chart="$1"
|
local chart="$1"
|
||||||
local chartname="$2"
|
local chartname="$2"
|
||||||
@@ -295,6 +296,7 @@ sync_tag() {
|
|||||||
tag="${tag%_}"
|
tag="${tag%_}"
|
||||||
tag="${tag%.}"
|
tag="${tag%.}"
|
||||||
sed -i -e "s|appVersion: .*|appVersion: \"${tag}\"|" "${chart}/Chart.yaml"
|
sed -i -e "s|appVersion: .*|appVersion: \"${tag}\"|" "${chart}/Chart.yaml"
|
||||||
|
sed -i -e "s|home: .*|home: \"https:\/\/truecharts.org\/docs\/charts\/${train}\/${chartname}\"|" "${chart}/Chart.yaml"
|
||||||
}
|
}
|
||||||
export -f sync_tag
|
export -f sync_tag
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user