Skip to content

Commit d7dd47a

Browse files
authored
ci(vrt): create zip file with directory info
1 parent ab15838 commit d7dd47a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/vrt.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,15 @@ jobs:
5757
- name: Stop storybook
5858
if: ${{ always() }}
5959
run: kill ${{ steps.storybook.outputs.pid }}
60-
- name: Create snapshots folder
60+
- name: Create snapshots.zip
6161
run: |
62-
mkdir updated-snapshots
6362
if [[ ! -z $(git ls-files --others --exclude-standard --modified) ]]; then
64-
cp $(git ls-files --others --exclude-standard --modified) updated-snapshots
63+
git ls-files --others --exclude-standard --modified | zip snapshots -@
6564
fi
6665
- name: Upload snapshots
6766
uses: actions/upload-artifact@v3
6867
with:
6968
name: snapshots-${{ matrix.shard }}
70-
path: updated-snapshots
69+
path: snapshots.zip
7170
retention-days: 1
71+
if-no-files-found: ignore

0 commit comments

Comments
 (0)