diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index dfa0eed430..41eb122b12 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -69,12 +69,12 @@ jobs: run: make integration-test - name: Create reports - if: always() + if: failure() working-directory: ./.github/scripts run: ./create-reports-full.sh - name: Upload cluster logs - if: always() + if: failure() uses: actions/upload-artifact@v3 with: name: logs-integration-tests-${{ inputs.helm-install }}-${{ inputs.scheduling-gates }}-${{ inputs.allowed-namespaces }} diff --git a/.github/workflows/load-test.yml b/.github/workflows/load-test.yml index 945a943936..38fa941631 100644 --- a/.github/workflows/load-test.yml +++ b/.github/workflows/load-test.yml @@ -59,12 +59,12 @@ jobs: path: ./collected-metrics - name: Create reports - if: always() + if: failure() working-directory: ./.github/scripts run: ./create-reports-toolkit.sh - name: Upload cluster logs - if: always() + if: failure() uses: actions/upload-artifact@v3 with: name: logs-load-tests diff --git a/.github/workflows/performance-test.yml b/.github/workflows/performance-test.yml index 0bc438b3fa..39d1d6b240 100644 --- a/.github/workflows/performance-test.yml +++ b/.github/workflows/performance-test.yml @@ -31,12 +31,12 @@ jobs: make performance-test - name: Create reports - if: always() + if: failure() working-directory: ./.github/scripts run: ./create-reports-toolkit.sh - name: Upload cluster logs - if: always() + if: failure() uses: actions/upload-artifact@v3 with: name: logs-performance-tests