From 90e47680815fed4092838e5a03ef1a230c720387 Mon Sep 17 00:00:00 2001 From: Oscar Vestlie Date: Wed, 25 Sep 2024 18:48:10 +0000 Subject: [PATCH] Fix if conditional Change-Id: Idf7d377220ecaf08e60eeed3b8d61aad0948ae0f --- .github/actions/on_device_tests/action.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/on_device_tests/action.yaml b/.github/actions/on_device_tests/action.yaml index a4b1165c3e8c..0d837c445467 100644 --- a/.github/actions/on_device_tests/action.yaml +++ b/.github/actions/on_device_tests/action.yaml @@ -162,8 +162,8 @@ runs: - name: Print device logs if: always() run: | - if [[ -z "${COBALT_ERROR_LOG}" ]]; then - cat "${GITHUB_WORKSPACE}/test_results/${COBALT_ERROR_LOG}" + if ls ${COBALT_LOGS_DIR}/**/*.log 1> /dev/null 2>&1; then + cat ${COBALT_LOGS_DIR}/**/*.log else echo "No device logs found" fi