From 6dfcb30baf4f68bec74bf950e3cf830ce9d53ee0 Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 27 May 2023 13:47:35 +0800 Subject: [PATCH] Update validation.yml --- .github/workflows/validation.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/validation.yml b/.github/workflows/validation.yml index 4eae587..83da4de 100644 --- a/.github/workflows/validation.yml +++ b/.github/workflows/validation.yml @@ -59,9 +59,13 @@ jobs: echo "Validating $email in $filename" result=$(node scripts/validate-email/dist/index.js --email "$email") + echo "Raw response: $result" + fixed_result=$(echo "$result" | jq '.') - if [[ $(echo "$fixed_result" | jq -r '.success') == "false" ]]; then + success=$(echo "$fixed_result" | jq -r '.success') + + if [[ "$success" == "false" == "false" ]]; then echo "::error::FAIL $email $filename" echo "FAIL $email $filename" >> failed_validations.txt else