make sure there a CHANGELOG.md to copy... (#5029)
This commit is contained in:
@@ -76,6 +76,9 @@ patch_apps() {
|
|||||||
echo "categories:" >> catalog/${train}/${chartname}/item.yaml
|
echo "categories:" >> catalog/${train}/${chartname}/item.yaml
|
||||||
cat ${target}/Chart.yaml | yq '.annotations."truecharts.org/catagories"' -r >> catalog/${train}/${chartname}/item.yaml
|
cat ${target}/Chart.yaml | yq '.annotations."truecharts.org/catagories"' -r >> catalog/${train}/${chartname}/item.yaml
|
||||||
# Copy changelog from website
|
# Copy changelog from website
|
||||||
|
if [[ ! -f "website/docs/charts/${train}/${chart}/CHANGELOG.md" ]]; then
|
||||||
|
touch "website/docs/charts/${train}/${chart}/CHANGELOG.md"
|
||||||
|
fi
|
||||||
cp -rf "website/docs/charts/${train}/${chart}/CHANGELOG.md" "${target}/CHANGELOG.md" 2>/dev/null || :
|
cp -rf "website/docs/charts/${train}/${chart}/CHANGELOG.md" "${target}/CHANGELOG.md" 2>/dev/null || :
|
||||||
sed -i '1d' "${target}/CHANGELOG.md"
|
sed -i '1d' "${target}/CHANGELOG.md"
|
||||||
sed -i '1s/^/*for the complete changelog, please refer to the website*\n\n/' "${target}/CHANGELOG.md"
|
sed -i '1s/^/*for the complete changelog, please refer to the website*\n\n/' "${target}/CHANGELOG.md"
|
||||||
@@ -105,7 +108,6 @@ copy_apps() {
|
|||||||
}
|
}
|
||||||
export -f copy_apps
|
export -f copy_apps
|
||||||
|
|
||||||
|
|
||||||
if [[ -d "charts/${1}" ]]; then
|
if [[ -d "charts/${1}" ]]; then
|
||||||
echo "Start processing charts/${1} ..."
|
echo "Start processing charts/${1} ..."
|
||||||
chartversion=$(cat charts/${1}/Chart.yaml | grep "^version: " | awk -F" " '{ print $2 }')
|
chartversion=$(cat charts/${1}/Chart.yaml | grep "^version: " | awk -F" " '{ print $2 }')
|
||||||
|
|||||||
Reference in New Issue
Block a user