mirror of
https://github.com/tiennm99/is-a-good-dev.git
synced 2026-10-13 00:14:43 +00:00
Update getJSON.js
This commit is contained in:
1 parent
b30a3f8f96
commit
ee49e68c78
1 file changed
+1
-1
+1
-1
@@ -5,7 +5,7 @@ const core = require('@actions/core');
|
||||
function getJSON(file, filename) {
|
||||
const path = `${process.env.actions_path}/${file}`; // File path.
|
||||
const ext = getFileExtension(file);
|
||||
if (path.includes("sub-logs") && (!ext || ext != 'json')) return 3 //if file is subdomain file but has no ext or diff ext than .json
|
||||
if (path.includes("sub-logs") && !ext || ext != 'json') return 3 //if file is subdomain file but has no ext or diff ext than .json
|
||||
if (!ext) return false; // If no file extension, return.
|
||||
if (ext != 'json') return false; // If file extension is not '.json' return.
|
||||
|
||||
|
||||
Reference in new issue
Block a user