fix(CI): fix Error.log check (#19161)

This commit is contained in:
sudlud
2024-06-25 13:53:46 +02:00
committed by GitHub
parent 1572c53d88
commit 24c8f3c4c6

View File

@@ -130,6 +130,7 @@ runs:
AC_CHARACTER_DATABASE_INFO=localhost;3306;root;root;acore_characters AC_CHARACTER_DATABASE_INFO=localhost;3306;root;root;acore_characters
AC_WORLD_DATABASE_INFO=localhost;3306;root;root;acore_world AC_WORLD_DATABASE_INFO=localhost;3306;root;root;acore_world
AC_DATA_DIR=env/dist/data AC_DATA_DIR=env/dist/data
AC_LOGS_DIR=env/dist/logs
EOF EOF
- name: get dbc files - name: get dbc files
@@ -156,7 +157,7 @@ runs:
- name: Check startup errors - name: Check startup errors
shell: bash shell: bash
run: | run: |
error_log="./env/dist/bin/Errors.log" error_log="$AC_LOGS_DIR/Errors.log"
# -s checks if the file's size is greater than 0 bytes # -s checks if the file's size is greater than 0 bytes
# ! -s checks if the file's size is less than/equal to 0 bytes # ! -s checks if the file's size is less than/equal to 0 bytes
# if the error log is empty, exit without error # if the error log is empty, exit without error