declutter alerts (#12)

* updated docs with stellar official docs

* declutter alerts

---------

Co-authored-by: Mike Stepanovic <mike.stepanovic@flipsidecrypto.com>
This commit is contained in:
Mike Stepanovic 2025-04-03 13:41:52 -06:00 committed by GitHub
parent 33e6b5e20a
commit 1ef901e6d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -122,6 +122,9 @@ 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)