From a4e83d186ffdc3d44600226a1a1e4b5f263f450e Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Mon, 7 Apr 2014 16:13:07 +0200 Subject: [PATCH] [scripts] send an email when regular or monthly releases have been created --- scripts/iso_build.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/scripts/iso_build.sh b/scripts/iso_build.sh index 319b434..b91ae49 100755 --- a/scripts/iso_build.sh +++ b/scripts/iso_build.sh @@ -539,6 +539,18 @@ Thanks, Sun" | /bin/mail -s "${ACTION} images build script failure" root } +mail_success() { + echo "Hello there, + +New ${ACTION} images tagged as ${ISO_TAG} have been built and pushed to mirrors. +You *must* now edit http://www.sabayon.org/latest (node/306) and update the +release to ${ISO_TAG}. + +Please do it within 24-48 hours from now. + +" | /bin/mail -s "Action required: ${ACTION} ${ISO_TAG} images built" root +} + out=0 if [ -n "${DO_STDOUT}" ]; then if [ -z "${DO_PUSHONLY}" ]; then @@ -561,6 +573,10 @@ else if [ "${out}" != "0" ]; then # mail root mail_failure "${out}" "${LOG_FILE}" + else + if [ "${ACTION}" = "monthly" ] || [ "${ACTION}" = "release" ]; then + mail_success + fi fi fi echo "EXIT_STATUS: ${out}"