Skip to content

Commit

Permalink
fix slack msg (#12887)
Browse files Browse the repository at this point in the history
  • Loading branch information
aalves08 authored Dec 16, 2024
1 parent 3040545 commit 29cb65b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/test-extension-workflows-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test-extension-workflows-release-2.8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test-extension-workflows-release-2.9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 29cb65b

Please sign in to comment.