declutter alerts

This commit is contained in:
Mike Stepanovic 2025-04-03 11:17:56 -06:00
parent 30fdcccc1c
commit e96ab9a183

View File

@ -122,6 +122,9 @@ def send_alert(webhook_url):
if __name__ == '__main__':
webhook_url = os.environ.get("SLACK_WEBHOOK_URL")
data = log_test_result()
# Only send an alert if there are failures
if data['fail_count'] > 0:
send_alert(webhook_url)