From f0d24d3eb356e9dabece803fc727058c4cc627d6 Mon Sep 17 00:00:00 2001 From: Karl Cardenas Date: Mon, 1 Apr 2024 13:43:59 -0700 Subject: [PATCH] chore: save --- .github/workflows/screenshot_capture.yaml | 35 +++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/.github/workflows/screenshot_capture.yaml b/.github/workflows/screenshot_capture.yaml index 2ef8343208..dc54dd2e6d 100644 --- a/.github/workflows/screenshot_capture.yaml +++ b/.github/workflows/screenshot_capture.yaml @@ -107,8 +107,39 @@ jobs: uses: actions/upload-artifact@v4 id: screenshots with: - name: "snapshots" + name: snapshots-${{ matrix.shardIndex }} path: | screenshots/ if-no-files-found: error - retention-days: 3 \ No newline at end of file + retention-days: 1 + + merge-snapshots: + name: Merge Snapshots + runs-on: ubuntu-latest + needs: [visual-snapshots] + steps: + + - name: Check out repository code + uses: actions/checkout@v4 + + - name: Download blob reports from GitHub Actions Artifacts + uses: actions/download-artifact@v4 + with: + path: snapshots + pattern: snapshots-* + merge-multiple: true + + - name: Merge Snapshots + run: | + ls -ll + ls -ll snapshots + + - name: Upload Screenshots + uses: actions/upload-artifact@v4 + id: screenshots + with: + name: "snapshots" + path: | + snapshots/ + if-no-files-found: error + retention-days: 3