mirror of
https://github.com/tiennm99/is-amazing.git
synced 2026-10-11 08:59:58 +00:00
Update check_pr.yml
This commit is contained in:
1 file changed
+1
-1
@@ -29,7 +29,7 @@ jobs:
|
||||
TYPE=$(jq -r '.type // "CNAME"' ${jsonfile})
|
||||
URL=$(jq -r '.url' ${jsonfile})
|
||||
if [ ${TYPE} = "CNAME" ] || [ -z ${TYPE} ]; then
|
||||
if echo ${URL} | grep -E '^https?://[^/]*/[^/]+'; then
|
||||
if echo ${URL} | grep -qE '^https?://[^/]*/.*'; then
|
||||
echo "URL in ${jsonfile} must not contain subdirectories for CNAME records."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user