diff --git a/.github/workflows/code_checks.yml b/.github/workflows/code_checks.yml index 7dda0c13..68553a69 100755 --- a/.github/workflows/code_checks.yml +++ b/.github/workflows/code_checks.yml @@ -19,12 +19,13 @@ jobs: - name: Check for absolute path URLs run: | - if grep -r -E "\burl:\s*['\"]\/php" --include=\*.{js,php} .; then + if grep -rE "['\"]\/php\/" --include=\*.{js,php} .; then echo "❌ Found absolute path URLs starting with '/php/'. Please use relative paths." exit 1 else echo "✅ No absolute path URLs found." fi + - name: Check Python syntax run: | set -e