Skip to content

Commit f5bbb0b

Browse files
author
Marc Stern
committed
Fixed exit code in case of success
1 parent 4399ee9 commit f5bbb0b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,12 @@ jobs:
5252
- name: Search for errors/warnings in error log
5353
run: |
5454
errors=$(grep -E ':(?error|warn)[]]' /var/log/apache2/error.log)
55-
if [ -n "${errors}" ]; then
55+
if [[ -n "${errors}" ]]; then
5656
echo "Found errors/warnings in error.log"
5757
echo "${errors}"
5858
exit 1
5959
fi
60+
exit 0
6061
- name: Show httpd error log
6162
if: always()
6263
run: sudo cat /var/log/apache2/error.log

0 commit comments

Comments
 (0)