From 9cc176af01b19da382598bd6153fbfc26525b678 Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Thu, 16 Jun 2016 15:57:05 -0400 Subject: [PATCH] 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 --- announce.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/announce.sh b/announce.sh index 6c717b3..5de1417 100755 --- a/announce.sh +++ b/announce.sh @@ -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 {