diff options
author | braxtonhall | 2022-10-24 19:23:51 +0000 |
---|---|---|
committer | braxtonhall | 2022-10-24 19:23:51 +0000 |
commit | 8af5f6d9351554b22e75650487d1afe5745df39b (patch) | |
tree | 6c5a67ce4fd50a1e7f20148ab6e7d80d2fba7756 | |
parent | 7cdf8b8dfca8e8513fdbc1ed67a701420d8527cb (diff) |
Make PR workflow a little stricter
-rw-r--r-- | bin/checkPeople.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/checkPeople.js b/bin/checkPeople.js index 60527b9..3c564a4 100644 --- a/bin/checkPeople.js +++ b/bin/checkPeople.js @@ -26,4 +26,11 @@ if (!(person.entries && person.entries.length > 0)) { throw `${actor} is missing entries!`; } +for (const entry of person.entries) { + const {link} = entry; + if (!(link.startsWith("http") || fs.existsSync(link))) { + throw `${link} not found!`; + } +} + console.log("Checked!"); |