File tree 1 file changed +9
-1
lines changed
.github/actions/screenshots
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -33,10 +33,12 @@ runs:
33
33
shell : bash
34
34
- name : Restore screenshots
35
35
id : vrt-screenshots
36
- uses : actions/cache@v4
36
+ uses : actions/cache/restore @v4
37
37
with :
38
38
path : ${{ inputs.path }}
39
39
key : ${{ steps.cache.outputs.key }}
40
+ - run : (ls .reg/screenshots/Home >> /dev/null 2>&1 && ls .reg/screenshots/Home) || echo "file no exists"
41
+ shell : bash
40
42
- if : ${{ steps.vrt-screenshots.outputs.cache-hit != 'true' }}
41
43
name : Install Japanese fonts
42
44
run : |
51
53
name : Take screenshots
52
54
run : npm run screenshot
53
55
shell : bash
56
+ - if : ${{ steps.vrt-screenshots.outputs.cache-hit != 'true' }}
57
+ name : Restore screenshots
58
+ uses : actions/cache/save@v4
59
+ with :
60
+ path : ${{ inputs.path }}
61
+ key : ${{ steps.cache.outputs.key }}
54
62
# ref: https://github.com/actions/checkout/issues/692#issuecomment-1112305878
55
63
- uses : actions/checkout@v4
56
64
with :
You can’t perform that action at this time.
0 commit comments