mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
github wf
This commit is contained in:
3
.github/workflows/code_checks.yml
vendored
3
.github/workflows/code_checks.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user