fix(ci): fix changelog path (#5046)

This commit is contained in:
Stavros Kois 2022-12-01 12:56:21 +02:00 committed by GitHub
parent 9d118562fa
commit 4b8a9e76c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -76,10 +76,10 @@ patch_apps() {
echo "categories:" >> catalog/${train}/${chartname}/item.yaml
cat ${target}/Chart.yaml | yq '.annotations."truecharts.org/catagories"' -r >> catalog/${train}/${chartname}/item.yaml
# Copy changelog from website
if [[ ! -f "website/docs/charts/${train}/${chart}/CHANGELOG.md" ]]; then
touch "website/docs/charts/${train}/${chart}/CHANGELOG.md"
if [[ ! -f "website/docs/charts/${train}/${chartname}/CHANGELOG.md" ]]; then
touch "website/docs/charts/${train}/${chartname}/CHANGELOG.md"
fi
cp -rf "website/docs/charts/${train}/${chart}/CHANGELOG.md" "${target}/CHANGELOG.md" 2>/dev/null || :
cp -rf "website/docs/charts/${train}/${chartname}/CHANGELOG.md" "${target}/CHANGELOG.md" 2>/dev/null || :
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/^/**Important:**\n/' "${target}/CHANGELOG.md"