mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Fixed exit code in case of success
This commit is contained in:
parent
4399ee9ba9
commit
f5bbb0b851
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@ -52,11 +52,12 @@ jobs:
|
||||
- name: Search for errors/warnings in error log
|
||||
run: |
|
||||
errors=$(grep -E ':(?error|warn)[]]' /var/log/apache2/error.log)
|
||||
if [ -n "${errors}" ]; then
|
||||
if [[ -n "${errors}" ]]; then
|
||||
echo "Found errors/warnings in error.log"
|
||||
echo "${errors}"
|
||||
exit 1
|
||||
fi
|
||||
exit 0
|
||||
- name: Show httpd error log
|
||||
if: always()
|
||||
run: sudo cat /var/log/apache2/error.log
|
||||
|
Loading…
x
Reference in New Issue
Block a user