mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-09 10:36:43 +02:00
Flatten uploaded images
This commit is contained in:
26
.github/workflows/e2e.yml
vendored
26
.github/workflows/e2e.yml
vendored
@@ -102,8 +102,30 @@ jobs:
|
|||||||
token: 6845cc80-77ee-4e17-85a1-026cd95e0766
|
token: 6845cc80-77ee-4e17-85a1-026cd95e0766
|
||||||
|
|
||||||
- name: Upload Artifacts
|
- name: Upload Artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
if: ${{ failure() && steps.cypress.conclusion == 'failure' }}
|
if: ${{ failure() && steps.cypress.conclusion == 'failure' }}
|
||||||
with:
|
with:
|
||||||
name: error-snapshots
|
name: error-snapshots-${{ matrix.containers }}
|
||||||
|
retention-days: 1
|
||||||
path: cypress/snapshots/**/__diff_output__/*
|
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/
|
Reference in New Issue
Block a user