Update check_pr.yml

This commit is contained in:
Joab authored and GitHub committed 2023-12-27 14:23:10 +08:00
1 parent 243d251e76
commit 3617c3dc9a
1 file changed
+2 -1
+2 -1
View File
@@ -29,7 +29,8 @@ jobs:
TYPE=$(jq -r '.type // "CNAME"' ${jsonfile})
URL=$(jq -r '.url' ${jsonfile})
if [ ${TYPE} = "CNAME" ] || [ -z ${TYPE} ]; then
if echo ${URL} | grep -qE '^https?://[^/]*/.*'; then
# We add a `.*[^/]$` at the end to allow URLs that end with '/'
if echo ${URL} | grep -qE '^https?://[^/]*/.*[^/]$'; then
echo "URL in ${jsonfile} must not contain subdirectories for CNAME records."
exit 1
fi