From eb6ee9f04886fa993b3aaac139ab3c1c1b21b2e7 Mon Sep 17 00:00:00 2001 From: Sagar Gurung <46086950+SagarGi@users.noreply.github.com> Date: Tue, 5 Dec 2023 20:24:55 +0545 Subject: [PATCH] Check for cancelled, skipped (#534) Signed-off-by: sagargurung1001@gmail.com --- .github/scripts/notify-to-element.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/scripts/notify-to-element.sh b/.github/scripts/notify-to-element.sh index 105dd20b8..07fc0fd5d 100755 --- a/.github/scripts/notify-to-element.sh +++ b/.github/scripts/notify-to-element.sh @@ -32,6 +32,10 @@ jobs_conclusions=$(echo "$jobs_informations" | jq -r '.[].conclusion') workflow_status="Success" if [[ " ${jobs_conclusions[*]} " == *"failure"* ]]; then workflow_status="Failure" +elif [[ " ${jobs_conclusions[*]} " == *"cancelled"* ]]; then + workflow_status="Cancelled" +elif [[ " ${jobs_conclusions[*]} " == *"skipped"* ]]; then + workflow_status="Skipped" fi log_info "Sending report to the element chat...."