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: |