mirror of
https://github.com/FlipsideCrypto/aurora-models.git
synced 2026-02-06 13:56:51 +00:00
silence alerts on success
This commit is contained in:
parent
795bdc8c16
commit
61b87ce00d
@ -124,4 +124,8 @@ def send_alert(webhook_url):
|
||||
if __name__ == '__main__':
|
||||
|
||||
webhook_url = os.environ.get("SLACK_WEBHOOK_URL")
|
||||
send_alert(webhook_url)
|
||||
data = log_test_result()
|
||||
|
||||
# Only send an alert if there are failures
|
||||
if data['fail_count'] > 0:
|
||||
send_alert(webhook_url)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user