From 84bd7d9bc51dff8e6e98a6362702ba2bbb6ef10a Mon Sep 17 00:00:00 2001 From: Hannah Pho Date: Mon, 14 Oct 2024 14:48:20 -0400 Subject: [PATCH] Update period builds failure email recipient (#288) --- periodic_builds/notify_results.sh | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/periodic_builds/notify_results.sh b/periodic_builds/notify_results.sh index d80cee3..926bdf1 100755 --- a/periodic_builds/notify_results.sh +++ b/periodic_builds/notify_results.sh @@ -12,16 +12,14 @@ # See the License for the specific language governing permissions and # limitations under the License. - -for f in $FAILED_FOLDER/* -do - printf "Sending email for failed file; $(basename $f)\n" - subject=$(head $f -n 1) - go run main.go \ - --subject="$subject" \ - --receiver="datacommons-alerts@google.com" \ - --body_file="$f" \ - --mime_type="text/plain" +for f in $FAILED_FOLDER/*; do + printf "Sending email for failed file; $(basename $f)\n" + subject=$(head $f -n 1) + go run main.go \ + --subject="$subject" \ + --receiver="datacommons-alerts+builds@google.com" \ + --body_file="$f" \ + --mime_type="text/plain" done printf "count success: $(ls -l $SUCCESS_FOLDER | wc -l)\n\n"