From d5010460dba91b87f77ee97792c0beabc272a3f5 Mon Sep 17 00:00:00 2001 From: tligui_y Date: Sat, 23 Aug 2025 19:07:03 +0200 Subject: [PATCH] Update action.yml --- action.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/action.yml b/action.yml index 345e242..a31d719 100644 --- a/action.yml +++ b/action.yml @@ -291,9 +291,8 @@ runs: pip|custom) ;; esac - WRAP="${{ inputs.session-wrapper }} bash -c" - cat > run_all.sh < run_all.sh <<'EOF' #!/bin/bash set -e set -x @@ -301,18 +300,20 @@ runs: echo "⚡ Running tests and generating reports..." - echo "⏩ Running tests..." + # MAIN if [ -n "${{ inputs.test-run-cmd }}" ]; then - ${{ inputs.test-run-cmd }} + echo "⏩ Running custom test-run-cmd..." + eval "${{ inputs.test-run-cmd }}" else - $CMD + echo "⏩ Running default CMD..." + eval "$CMD" fi echo "▶️ END" EOF chmod +x run_all.sh - $WRAP "./run_all.sh" + ./run_all.sh awk '/=+ test session starts =+/{flag=1} /-+ JSON report -+/{flag=0} flag' outputs/full-output.log > outputs/raw-test-output.log