aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbraxtonhall2022-10-24 19:23:51 +0000
committerbraxtonhall2022-10-24 19:23:51 +0000
commit8af5f6d9351554b22e75650487d1afe5745df39b (patch)
tree6c5a67ce4fd50a1e7f20148ab6e7d80d2fba7756
parent7cdf8b8dfca8e8513fdbc1ed67a701420d8527cb (diff)
Make PR workflow a little stricter
-rw-r--r--bin/checkPeople.js7
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!");