mirror of
https://github.com/saymrwulf/transformers.git
synced 2026-05-14 20:58:08 +00:00
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:
parent
b3b9f99ed2
commit
060fe61dff
1 changed files with 4 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue