From a85211190a4f7efe07f96c90a0044d6c106aa39c Mon Sep 17 00:00:00 2001 From: Eloy Coto Date: Fri, 24 Mar 2023 12:43:32 +0100 Subject: [PATCH] CI: Add the pod list output when the action fails Signed-off-by: Eloy Coto --- .github/workflows/test.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c271f45da..4dbd261f0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -177,13 +177,14 @@ jobs: SERVER_IP="${SERVERIP}" SERVERPORT=80 ./workflow-examples/run_examples.sh complex - name: Collect logs - if: always() + if: ${{ failure() }} run: | + kubectl get pods --all-namespaces kind export logs dist - name: Archive logs uses: actions/upload-artifact@v3 - if: always() + if: ${{ failure() }} with: name: logs path: |