From 6a674595f981cb32721bae29f0944489ce205e35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20BUISSON?= Date: Fri, 18 Oct 2024 12:05:32 +0200 Subject: [PATCH] fix: changelog --- hack/changelog.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/hack/changelog.sh b/hack/changelog.sh index a5e951a1d..5711a42d6 100755 --- a/hack/changelog.sh +++ b/hack/changelog.sh @@ -1,9 +1,9 @@ #!/bin/bash -chart="./traefik" - -version="$(awk '/^version:/ { print $2} ' ${chart}/Chart.yaml)" -changelog="$(sed -e "1,/^## ${version}/d" -e "/^###/,\$d" -e '/^$/d' -e 's/^* /- /' -e 's/^/ /' ${chart}/Changelog.md | grep '^ - ' | sed -e 's/\ *$//g' | sed 's/ - \(.*\)/ - "\1"/g')" -sed -i -e '/^ artifacthub.io\/changes: |/,$d' ${chart}/Chart.yaml -echo " artifacthub.io/changes: |" >> ${chart}/Chart.yaml -echo "${changelog}" >> ${chart}/Chart.yaml +for chart in "./traefik" "./traefik-crds"; do + version="$(awk '/^version:/ { print $2} ' ${chart}/Chart.yaml)" + changelog="$(sed -e "1,/^## ${version}/d" -e "/^###/,\$d" -e '/^$/d' -e 's/^* /- /' -e 's/^/ /' ${chart}/Changelog.md | grep '^ - ' | sed -e 's/\ *$//g' | sed 's/ - \(.*\)/ - "\1"/g')" + sed -i -e '/^ artifacthub.io\/changes: |/,$d' ${chart}/Chart.yaml + echo " artifacthub.io/changes: |" >>${chart}/Chart.yaml + echo "${changelog}" >>${chart}/Chart.yaml +done