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