From: Louis Chemineau Date: Tue, 4 Apr 2023 08:48:36 +0000 (+0200) Subject: Only upload logs and data on failure X-Git-Tag: v26.0.1rc1~20^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e607effded13130cdd7f3b2956b804412ea3882c;p=nextcloud-server.git Only upload logs and data on failure Signed-off-by: Louis Chemineau --- diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index d5e3e8ce698..66f3b4383fc 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -92,23 +92,23 @@ jobs: CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} - name: Extract NC logs - if: ( success() || failure() ) && matrix.containers != 'component' + if: failure() && matrix.containers != 'component' run: docker logs nextcloud-cypress-tests-server > nextcloud.log - name: Upload NC logs uses: actions/upload-artifact@v3 - if: ( success() || failure() ) && matrix.containers != 'component' + if: failure() && matrix.containers != 'component' with: name: nc_logs_${{ matrix.containers }} path: nextcloud.log - name: Create data dir archive - if: ( success() || failure() ) && matrix.containers != 'component' + if: failure() && matrix.containers != 'component' run: docker exec nextcloud-cypress-tests-server tar -cvjf - data > data.tar - name: Upload data dir archive uses: actions/upload-artifact@v3 - if: ( success() || failure() ) && matrix.containers != 'component' + if: failure() && matrix.containers != 'component' with: name: nc_data_${{ matrix.containers }} path: data.tar