silence alerts on success

This commit is contained in:
jacksan 2025-04-04 12:01:26 -06:00
parent 795bdc8c16
commit 61b87ce00d

View File

@ -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)