Skip to content

Commit

Permalink
Check for cancelled, skipped (#534)
Browse files Browse the repository at this point in the history
Signed-off-by: sagargurung1001@gmail.com <sagargurung1001@gmail.com>
  • Loading branch information
SagarGi committed Dec 5, 2023
1 parent 26562e9 commit eb6ee9f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/scripts/notify-to-element.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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...."
Expand Down

0 comments on commit eb6ee9f

Please sign in to comment.