treat missing metadata as a warning not an error

Rather than exit with an error when the metadata is not present, report
a warning and exit with a passing status code. That way the CI job won't
fail.

Change-Id: If87b49fda044a54326a8bca600226ad838106027
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2016-06-16 15:57:05 -04:00
parent c94969aee9
commit 9cc176af01
1 changed files with 5 additions and 2 deletions

View File

@ -94,8 +94,11 @@ fi
#
TAG_META=$(git show --no-patch "$VERSION" | grep '^meta:' || true)
if [[ -z "$TAG_META" ]]; then
echo ERROR: Missing meta lines in $VERSION tag message.
exit 1
echo "WARNING: Missing meta lines in $VERSION tag message,"
echo " skipping announcement."
echo
echo "Was the tag for $VERSION created with release.sh?"
exit 0
fi
function get_tag_meta {