mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-05-20 14:24:15 +00:00
fix ci
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@
|
||||
"email": "admin@is-a.dev"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "is-a.dev"
|
||||
"CNAME": "is-a-dev.github.io"
|
||||
},
|
||||
"proxied": true
|
||||
}
|
||||
|
||||
+1
-1
@@ -4,6 +4,6 @@
|
||||
"email": "admin@is-a.dev"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "is-a.dev"
|
||||
"CNAME": "is-a-dev.github.io"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -140,9 +140,7 @@ function validateRecordValues(t, data, file) {
|
||||
if (key === "CNAME") {
|
||||
t.true(isValidHostname(value), `${file}: Invalid hostname for ${key}`);
|
||||
t.true(value !== `${subdomain}.is-a.dev`, `${file}: ${key} cannot point to itself`);
|
||||
if (data.owner.username.toLowerCase() !== "is-a-dev") {
|
||||
t.true(value !== "is-a.dev", `${file}: ${key} cannot point to is-a.dev`);
|
||||
}
|
||||
t.true(value !== "is-a.dev", `${file}: ${key} cannot point to is-a.dev`);
|
||||
} else if (key === "URL") {
|
||||
t.true(
|
||||
value.startsWith("http://") || value.startsWith("https://"),
|
||||
|
||||
Reference in New Issue
Block a user