From 553f84ea4a63bcb28be716e2920b64e75e7a5c9e Mon Sep 17 00:00:00 2001 From: Tweak Date: Wed, 30 Nov 2022 09:10:33 -0700 Subject: [PATCH] Fix. --- tests/json.test.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/json.test.js b/tests/json.test.js index 011b781..73e9ae4 100644 --- a/tests/json.test.js +++ b/tests/json.test.js @@ -4,6 +4,13 @@ const checkInfo = require('../utils/checkInfo.js'); const checkRecords = require('../utils/checkRecords.js'); const data = getJSON(process.env.FILES); +if (data == 3) { + core.setOutput('infoMessage', "Could not validate info."); + core.setOutput('recordMessage', "Could not validate records."); + core.setOutput('jsonData', "Could not read the JSON file, did you have an error in your syntax?") + core.setOutput('shouldComment', 'true') +} + if (data == false) { core.setOutput('shouldComment', 'false') console.log('Not a subdomain file')