mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
Flatten uploaded images
This commit is contained in:
parent
cb0ee5aa41
commit
658af081ee
26
.github/workflows/e2e.yml
vendored
26
.github/workflows/e2e.yml
vendored
@ -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/
|
Loading…
x
Reference in New Issue
Block a user