feat: json

This commit is contained in:
William Harrison authored and GitHub committed 2023-05-27 13:45:28 +08:00
1 parent bb79c2ac06
commit e9388cf4d1
1 file changed
+3 -2
+3 -2
View File
@@ -58,9 +58,10 @@ jobs:
echo "Validating $email in $filename"
result=$(node scripts/validate-email/dist/index.js --email "$email" | jq -c '.')
result=$(node scripts/validate-email/dist/index.js --email "$email")
fixed_result=$(echo "$result" | jq '.')
if [[ $(echo "$result" | jq -r '.success') == "false" ]]; then
if [[ $(echo "$fixed_result" | jq -r '.success') == "false" ]]; then
echo "::error::FAIL $email $filename"
echo "FAIL $email $filename" >> failed_validations.txt
else