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