From ea84873fccdaa502c86bcecd08c7b8cf5b3e6613 Mon Sep 17 00:00:00 2001 From: Alexandre Alves Date: Fri, 13 Dec 2024 16:55:32 +0000 Subject: [PATCH] fix slack msg --- .github/workflows/test-extension-workflows-master.yml | 4 +++- .github/workflows/test-extension-workflows-release-2.8.yml | 4 +++- .github/workflows/test-extension-workflows-release-2.9.yml | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-extension-workflows-master.yml b/.github/workflows/test-extension-workflows-master.yml index 4287e58f11..9e0671bd31 100644 --- a/.github/workflows/test-extension-workflows-master.yml +++ b/.github/workflows/test-extension-workflows-master.yml @@ -102,8 +102,10 @@ jobs: OUTPUT_ARRAY=("${{ needs.test-extensions-creators-and-update-paths-job-status.outputs.test-legacy-v1-job-status }}" "${{ needs.retrieve-tags-master.outputs.tags-job-status }}" "${{ needs.test-build-extension-charts-master.outputs.build-job-status }}" "${{ needs.test-build-extension-catalog-master.outputs.build-extension-catalog-job-status }}" "${{ needs.test-release-shell-pkg-master.outputs.build-release-shell-creators-status }}" "${{ needs.test-release-creators-pkg-master.outputs.build-release-shell-creators-status }}") JOB_NAME_ARRAY=("test-extensions-creators-and-update-paths-job-status" "retrieve-tags-master" "test-build-extension-charts-master" "test-build-extension-catalog-master" "test-release-shell-pkg-master" "test-release-creators-pkg-master") - if [[ ${OUTPUT_ARRAY[@]} =~ "failure" ] || [ ${OUTPUT_ARRAY[@]} =~ "" ]]; then + if [[ ${OUTPUT_ARRAY[@]} =~ "failure" ]]; then MSG_PREFIX="\nWorkflows testing for extensions failed! ❌" + elif [[ ${OUTPUT_ARRAY[@]} =~ "" ]]; then + MSG_PREFIX="\nSomething went wrong during the workflows testing! ⭕" else MSG_PREFIX="\nWorkflows testing for extensions succedded! ✅" fi diff --git a/.github/workflows/test-extension-workflows-release-2.8.yml b/.github/workflows/test-extension-workflows-release-2.8.yml index 744096c2d0..778de25249 100644 --- a/.github/workflows/test-extension-workflows-release-2.8.yml +++ b/.github/workflows/test-extension-workflows-release-2.8.yml @@ -89,8 +89,10 @@ jobs: OUTPUT_ARRAY=("${{ needs.retrieve-tags-release-2-dot-8.outputs.tags-job-status }}" "${{ needs.test-build-extension-charts-release-2-dot-8.outputs.build-job-status }}" "${{ needs.test-build-extension-catalog-release-2-dot-8.outputs.build-extension-catalog-job-status }}" "${{ needs.test-release-shell-pkg-release-2-dot-8.outputs.build-release-shell-creators-status }}" "${{ needs.test-release-creators-pkg-release-2-dot-8.outputs.build-release-shell-creators-status }}") JOB_NAME_ARRAY=("retrieve-tags-release-2-dot-8" "test-build-extension-charts-release-2-dot-8" "test-build-extension-catalog-release-2-dot-8" "test-release-shell-pkg-release-2-dot-8" "test-release-creators-pkg-release-2-dot-8") - if [[ ${OUTPUT_ARRAY[@]} =~ "failure" ] || [ ${OUTPUT_ARRAY[@]} =~ "" ]]; then + if [[ ${OUTPUT_ARRAY[@]} =~ "failure" ]]; then MSG_PREFIX="\nWorkflows testing for extensions failed! ❌" + elif [[ ${OUTPUT_ARRAY[@]} =~ "" ]]; then + MSG_PREFIX="\nSomething went wrong during the workflows testing! ⭕" else MSG_PREFIX="\nWorkflows testing for extensions succedded! ✅" fi diff --git a/.github/workflows/test-extension-workflows-release-2.9.yml b/.github/workflows/test-extension-workflows-release-2.9.yml index 68f2699ca2..592e381db9 100644 --- a/.github/workflows/test-extension-workflows-release-2.9.yml +++ b/.github/workflows/test-extension-workflows-release-2.9.yml @@ -89,8 +89,10 @@ jobs: OUTPUT_ARRAY=("${{ needs.retrieve-tags-release-2-dot-9.outputs.tags-job-status }}" "${{ needs.test-build-extension-charts-release-2-dot-9.outputs.build-job-status }}" "${{ needs.test-build-extension-catalog-release-2-dot-9.outputs.build-extension-catalog-job-status }}" "${{ needs.test-release-shell-pkg-release-2-dot-9.outputs.build-release-shell-creators-status }}" "${{ needs.test-release-creators-pkg-release-2-dot-9.outputs.build-release-shell-creators-status }}") JOB_NAME_ARRAY=("retrieve-tags-release-2-dot-9" "test-build-extension-charts-release-2-dot-9" "test-build-extension-catalog-release-2-dot-9" "test-release-shell-pkg-release-2-dot-9" "test-release-creators-pkg-release-2-dot-9") - if [[ ${OUTPUT_ARRAY[@]} =~ "failure" ] || [ ${OUTPUT_ARRAY[@]} =~ "" ]]; then + if [[ ${OUTPUT_ARRAY[@]} =~ "failure" ]]; then MSG_PREFIX="\nWorkflows testing for extensions failed! ❌" + elif [[ ${OUTPUT_ARRAY[@]} =~ "" ]]; then + MSG_PREFIX="\nSomething went wrong during the workflows testing! ⭕" else MSG_PREFIX="\nWorkflows testing for extensions succedded! ✅" fi