Skip to content

Commit

Permalink
Update period builds failure email recipient (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
hqpho authored Oct 14, 2024
1 parent 85fde3e commit 84bd7d9
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions periodic_builds/notify_results.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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="[email protected]" \
--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="[email protected]" \
--body_file="$f" \
--mime_type="text/plain"
done

printf "count success: $(ls -l $SUCCESS_FOLDER | wc -l)\n\n"
Expand Down

0 comments on commit 84bd7d9

Please sign in to comment.