From f5bbb0b8516cce33fca8f043f872f0a7a0dc6c51 Mon Sep 17 00:00:00 2001 From: Marc Stern Date: Fri, 2 Aug 2024 11:43:09 +0200 Subject: [PATCH] Fixed exit code in case of success --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 516d5b21..9ec469c1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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