openstack-helm-infra/tools/gate/reno-check.sh
Gage Hugo b243a1e829 Track release note changes on chart change
This change adds in the script to eventually enforce release note
updates when a chart version is bumped. It will currently be set
to ignore if it fails, however once all of the charts are updated,
this should be removed to hard-enforce.

Change-Id: If3b3b26619f7288b723c0d4e6e1b97d6cfe1cf74
2021-02-08 22:36:50 +00:00

19 lines
482 B
Bash
Executable File

#!/bin/bash
set -e
RESULT=0
while read -r line; do
SERVICE=$(echo $line | awk '{ print $1 }' FS=':' | awk '{ print $2 }' FS='/')
VERSION=$(echo $line | awk '{ print $3 }' FS=':' | xargs)
if grep -q "$VERSION" ./releasenotes/notes/$SERVICE.yaml ; then
echo "$SERVICE is up to date!"
else
echo "$SERVICE version does not match release notes. Likely requires a release note update"
RESULT=1
fi
done < <(grep -r --include Chart.yaml "version:" .)
exit $RESULT