Merge pull request #82 from FlipsideCrypto/silence-alerts

silence alerts on success
This commit is contained in:
Jack Forgash 2025-04-04 13:36:09 -06:00 committed by GitHub
commit 3f774368b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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)