summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2023-04-04 10:48:36 +0200
committerLouis Chemineau <louis@chmn.me>2023-04-04 10:48:36 +0200
commit67df0afaffa67ded8e7d63ebc9f82d32c53f0153 (patch)
tree0ecf282ef2fe4b4386c3831941527acdad4f078d /.github
parent5dc64ebee67920c06e8a5b154bf8c35401508304 (diff)
downloadnextcloud-server-67df0afaffa67ded8e7d63ebc9f82d32c53f0153.tar.gz
nextcloud-server-67df0afaffa67ded8e7d63ebc9f82d32c53f0153.zip
Only upload logs and data on failure
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/cypress.yml8
1 files changed, 4 insertions, 4 deletions
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