Not send successful report (#17329)

* send report only if there is any failure

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
Yih-Dar 2022-05-18 19:07:48 +02:00 committed by GitHub
parent b3b9f99ed2
commit 060fe61dff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -773,5 +773,7 @@ if __name__ == "__main__":
message = Message(title, ci_title, model_results, additional_results)
message.post()
message.post_reply()
# send report only if there is any failure
if message.n_failures:
message.post()
message.post_reply()