From 243d251e76153bce714b3380d48fcbe63c43b263 Mon Sep 17 00:00:00 2001 From: Joab <89288499+Joabutt@users.noreply.github.com> Date: Wed, 27 Dec 2023 14:18:15 +0800 Subject: [PATCH] Update check_pr.yml --- .github/workflows/check_pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check_pr.yml b/.github/workflows/check_pr.yml index 9a2145f..3afef15 100644 --- a/.github/workflows/check_pr.yml +++ b/.github/workflows/check_pr.yml @@ -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