From 89d9dae72f9ee0dd52411f71c8c28c19f896e64c Mon Sep 17 00:00:00 2001 From: Isaac Gallup Date: Mon, 14 Oct 2024 09:44:52 -0500 Subject: [PATCH] conditional catch when slackGroup not found --- script/github-actions/cypress-integration-test.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/script/github-actions/cypress-integration-test.sh b/script/github-actions/cypress-integration-test.sh index 28b540dced31..599b2ae58057 100644 --- a/script/github-actions/cypress-integration-test.sh +++ b/script/github-actions/cypress-integration-test.sh @@ -13,8 +13,9 @@ integrationHelper() { slack_group=$(grep -A 3 "\"rootFolder\": \"$product\"" ./config/changed-apps-build.json | awk -F'"' '/slackGroup/ {print $4}') if [[ -z "$slack_group" ]]; then - echo "Error: no slackGroup found for product '$product'" - exit 1 + echo "Warning: no slackGroup found for product '$product'. Results will be sent to status-vets-website" + slack_group="" + fi echo "VETS_WEBSITE_CHANNEL_ID=$slack_group" >> $GITHUB_ENV