debug: test test log parsing
Some checks failed
ci/woodpecker/push/test Pipeline failed
ci/woodpecker/push/notify Pipeline was successful

This commit is contained in:
Robert Kaussow 2024-10-18 11:54:28 +02:00
parent 85d2a685f5
commit 61d517a6ad
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0

View File

@ -11,8 +11,10 @@ variables:
commands: commands:
- | - |
output=$(hass -c $CI_WORKSPACE --script check_config 2>&1) output=$(hass -c $CI_WORKSPACE --script check_config 2>&1)
echo "$output" filtered_output=$(echo "$output" | grep "ERROR" | grep -v "Unknown device")
if echo "$output" | grep -v "Unknown device" | grep -q "ERROR"; then echo "$filtered_output"
if [ -n "$filtered_output" ]; then
echo "Configuration check failed"
exit 1 exit 1
fi fi
environment: environment: