Skip to content

Commit 7a0e41f

Browse files
authored
ci(vrt): upload only changed snapshots
1 parent 1cc86e5 commit 7a0e41f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/vrt.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,13 @@ jobs:
5757
- name: Stop storybook
5858
if: ${{ always() }}
5959
run: kill ${{ steps.storybook.outputs.pid }}
60+
- name: Create snapshots folder
61+
run: |
62+
mkdir updated-snapshots
63+
cp $(git ls-files --others --exclude-standard --modified) updated-snapshots
6064
- name: Upload snapshots
6165
uses: actions/upload-artifact@v3
6266
with:
6367
name: snapshots-${{ matrix.shard }}
64-
path: .playwright/snapshots
68+
path: updated-snapshots
6569
retention-days: 1

0 commit comments

Comments
 (0)