fix: only release when version is bumped

This commit is contained in:
kjeld Schouten-Lebbing
2021-09-08 16:45:17 +02:00
parent d5e3034ce9
commit 0341e24c6f
2 changed files with 3 additions and 4 deletions

View File

@@ -22,4 +22,4 @@ sources:
- https://github.com/traefik/traefik-helm-chart
- https://traefik.io/
type: application
version: 7.1.1
version: 7.1.2

View File

@@ -412,11 +412,10 @@ lookup_latest_tag() {
filter_charts() {
while read -r chart; do
[[ ! -d "$chart" ]] && continue
local file="$chart/Chart.yaml"
if [[ -f "$file" ]]; then
if [[ $(git diff $latest_tag $chart/Chart.yaml | grep "+version") ]]; then
echo "$chart"
else
echo "WARNING: $file is missing, assuming that '$chart' is not a Helm chart. Skipping." 1>&2
echo "Version not bumped. Skipping." 1>&2
fi
done
}