]> source.dussan.org Git - nextcloud-server.git/commitdiff
Only upload logs and data on failure 37589/head
authorLouis Chemineau <louis@chmn.me>
Tue, 4 Apr 2023 08:48:36 +0000 (10:48 +0200)
committerLouis Chemineau <louis@chmn.me>
Wed, 5 Apr 2023 09:51:46 +0000 (11:51 +0200)
Signed-off-by: Louis Chemineau <louis@chmn.me>
.github/workflows/cypress.yml

index d5e3e8ce698daa700d2748b6538ecf2aaa5e410b..66f3b4383fc1f9637d489adaa84af2e94c935702 100644 (file)
@@ -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