fix: only release when version is bumped
This commit is contained in:
@@ -22,4 +22,4 @@ sources:
|
|||||||
- https://github.com/traefik/traefik-helm-chart
|
- https://github.com/traefik/traefik-helm-chart
|
||||||
- https://traefik.io/
|
- https://traefik.io/
|
||||||
type: application
|
type: application
|
||||||
version: 7.1.1
|
version: 7.1.2
|
||||||
|
|||||||
@@ -412,11 +412,10 @@ lookup_latest_tag() {
|
|||||||
filter_charts() {
|
filter_charts() {
|
||||||
while read -r chart; do
|
while read -r chart; do
|
||||||
[[ ! -d "$chart" ]] && continue
|
[[ ! -d "$chart" ]] && continue
|
||||||
local file="$chart/Chart.yaml"
|
if [[ $(git diff $latest_tag $chart/Chart.yaml | grep "+version") ]]; then
|
||||||
if [[ -f "$file" ]]; then
|
|
||||||
echo "$chart"
|
echo "$chart"
|
||||||
else
|
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
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user