From fddd1ebec66f845e74274af0a060f74f171f102a Mon Sep 17 00:00:00 2001 From: N/Ame <173015200+grqz@users.noreply.github.com> Date: Sat, 21 Sep 2024 14:58:54 +1200 Subject: [PATCH] [ci/test] exit after printing logs (#36) * exit after printing logs * move ||true --------- Co-authored-by: grqx_wsl <173253225+grqx@users.noreply.github.com> --- .github/workflows/test.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0ddea20..c08144e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -53,8 +53,11 @@ jobs: shell: bash run: | exit_code=0 - script_response=$(./yt-dlp ${{ env.TEST_ARGS }} --extractor-args "youtube:getpot_bgutil_script=server/build/generate_once.js" dQw4w9WgXcQ 2>&1) - ret=$? + + { + script_response=$(./yt-dlp ${{ env.TEST_ARGS }} --extractor-args "youtube:getpot_bgutil_script=server/build/generate_once.js" dQw4w9WgXcQ 2>&1) + ret=$? + } || true echo "::group::Logs from yt-dlp" printf "%s\n" "$script_response" @@ -120,8 +123,10 @@ jobs: echo "$PING_RESP" | jq -C echo "::endgroup::" - script_response=$(./yt-dlp ${{ env.TEST_ARGS }} --extractor-args "youtube:getpot_bgutil_baseurl=http://127.0.0.1:${{ env.PORT }}" dQw4w9WgXcQ 2>&1) - ret=$? + { + script_response=$(./yt-dlp ${{ env.TEST_ARGS }} --extractor-args "youtube:getpot_bgutil_baseurl=http://127.0.0.1:${{ env.PORT }}" dQw4w9WgXcQ 2>&1) + ret=$? + } || true docker stop bgutil-provider