Skip to content

Commit

Permalink
fix: changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
darkweaver87 committed Oct 21, 2024
1 parent d0a2000 commit 6a67459
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions hack/changelog.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 6a67459

Please sign in to comment.