From 8a8289acb793a1dfb23d91c6d5d433472fbf3a7d Mon Sep 17 00:00:00 2001 From: Alexandre Alves Date: Wed, 4 Dec 2024 11:02:01 +0000 Subject: [PATCH] update --- .github/workflows/test-extension-workflows-master.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test-extension-workflows-master.yml b/.github/workflows/test-extension-workflows-master.yml index 177bf132374..a507cc2ea67 100644 --- a/.github/workflows/test-extension-workflows-master.yml +++ b/.github/workflows/test-extension-workflows-master.yml @@ -203,15 +203,15 @@ jobs: MSG_OUTPUT="$MSG_PREFIX" - for i in "${OUTPUT_ARRAY[@]}" + for index in "${!OUTPUT_ARRAY[@]}" do - echo "$i" - if [[ $OUTPUT_ARRAY[$1] == "failure" ]]; then + echo "$index" + if [[ ${OUTPUT_ARRAY[$index]} == "failure" ]]; then EMOJI="🆘" else EMOJI="✅" fi - MSG_OUTPUT="$MSG_OUTPUT \n::: Status for $JOB_NAME_ARRAY[$i] => $OUTPUT_ARRAY[$i] $EMOJI" + MSG_OUTPUT="$MSG_OUTPUT \n::: Status for ${JOB_NAME_ARRAY[$index]} => ${OUTPUT_ARRAY[$index]} $EMOJI" done echo "message sent: $MSG_OUTPUT"