From 29e89da1a26c692ea5375674ea79fe0841e810b0 Mon Sep 17 00:00:00 2001 From: Chris Evich Date: Mon, 24 Jan 2022 14:37:57 -0500 Subject: Github workflow: Send e-mail on job error This job is designed to be silent when Cirrus-cron executions pass. Unless specifically instructed, the workflow itself will also remain silent if there's an error. Fix this by catching workflow errors and sending a notification e-mail containing a link to the failed run. This also requires listing the recipient addresses directly in the workflow. Otherwise (as previouslly implemented) the value would not be retrieved if/when any previous step raised an error. **Note**: Due to the way this workflow is implemented, there is no way easy way to test it other than directly on the `main` repo. branch. Signed-off-by: Chris Evich --- contrib/cirrus/cron-fail_addrs.csv | 1 - 1 file changed, 1 deletion(-) delete mode 100644 contrib/cirrus/cron-fail_addrs.csv (limited to 'contrib') diff --git a/contrib/cirrus/cron-fail_addrs.csv b/contrib/cirrus/cron-fail_addrs.csv deleted file mode 100644 index 276158163..000000000 --- a/contrib/cirrus/cron-fail_addrs.csv +++ /dev/null @@ -1 +0,0 @@ -rh.container.bot@gmail.com,podman-monitor@lists.podman.io -- cgit v1.2.3-54-g00ecf