From fadfe78c6f55f9b5f6432adda145d71da24053ca Mon Sep 17 00:00:00 2001 From: Anahide Tchertchian <608958+atchertchian@users.noreply.github.com> Date: Thu, 5 Dec 2024 10:14:41 +0100 Subject: [PATCH] rename variable for clarity --- .../actions/reportportal-summarize/get-slack-message.sh | 8 ++++---- .../actions/reportportal-summarize/get-teams-message.sh | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/actions/reportportal-summarize/get-slack-message.sh b/.github/actions/reportportal-summarize/get-slack-message.sh index 02df8bbed..1a4a68463 100755 --- a/.github/actions/reportportal-summarize/get-slack-message.sh +++ b/.github/actions/reportportal-summarize/get-slack-message.sh @@ -18,15 +18,15 @@ if [[ -n "$RP_LAUNCH_KEY" ]]; then read -r status case $status in PASSED) - sstatus="✅" ;; + status_icon="✅" ;; FAILED) - sstatus="❌" + status_icon="❌" ;; *) - sstatus="$status" + status_icon="$status" ;; esac - MSG+="\n<$RP_LAUNCH_URL/$id|Report #$number> $sstatus" + MSG+="\n<$RP_LAUNCH_URL/$id|Report #$number> $status_icon" done < <(echo "$RP_CONTENT" | jq -r '.content[] | .id, .number, .status') fi fi diff --git a/.github/actions/reportportal-summarize/get-teams-message.sh b/.github/actions/reportportal-summarize/get-teams-message.sh index d0b7fd83e..d043070c8 100755 --- a/.github/actions/reportportal-summarize/get-teams-message.sh +++ b/.github/actions/reportportal-summarize/get-teams-message.sh @@ -18,15 +18,15 @@ if [[ -n "$RP_LAUNCH_KEY" ]]; then read -r status case $status in PASSED) - sstatus="✅" ;; + status_icon="✅" ;; FAILED) - sstatus="❌" + status_icon="❌" ;; *) - sstatus="$status" + status_icon="$status" ;; esac - MSG+="\n\n[Report #$number]($RP_LAUNCH_URL/$id) $sstatus" + MSG+="\n\n[Report #$number]($RP_LAUNCH_URL/$id) $status_icon" done < <(echo "$RP_CONTENT" | jq -r '.content[] | .id, .number, .status') fi fi