From 2649cb5b1c62d17a4535e931cfe23965f7a6c34a Mon Sep 17 00:00:00 2001 From: Prashant-Microsoft Date: Fri, 6 Sep 2024 12:31:29 +0530 Subject: [PATCH] testing automation flow --- .github/workflows/deploy-stage.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-stage.yml b/.github/workflows/deploy-stage.yml index e2b59f643..1c1a4f892 100644 --- a/.github/workflows/deploy-stage.yml +++ b/.github/workflows/deploy-stage.yml @@ -62,8 +62,8 @@ jobs: # Check if the command was successful if [ $exit_code -ne 0 ]; then - # Extract the error details - error_message=$(echo "$output" | grep -oP '(?<=ERROR: ).*') + # Extract error details from output + error_message=$(echo "$output" | grep -oP '(?<=ERROR: ).*' || echo "$output") echo "Deployment failed with the following error:" echo "$error_message"