Flatten uploaded images

This commit is contained in:
Sidharth Vinod 2024-01-19 14:42:51 +05:30
parent cb0ee5aa41
commit 658af081ee
No known key found for this signature in database
GPG Key ID: FB5CCD378D3907CD

View File

@ -102,8 +102,30 @@ jobs:
token: 6845cc80-77ee-4e17-85a1-026cd95e0766
- name: Upload Artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ failure() && steps.cypress.conclusion == 'failure' }}
with:
name: error-snapshots
name: error-snapshots-${{ matrix.containers }}
retention-days: 1
path: cypress/snapshots/**/__diff_output__/*
combineArtifacts:
needs: e2e
runs-on: ubuntu-latest
steps:
- name: Download All Artifacts
uses: actions/download-artifact@v4
with:
path: snapshots
pattern: error-snapshots-*
merge-multiple: true
- run: |
mkdir errors
cd snapshots
find . -mindepth 2 -type f -print -exec mv {} ../errors/ \;
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: error-snapshots
retention-days: 10
path: errors/