File tree Expand file tree Collapse file tree
.github/actions/screenshots Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121 - uses : actions/checkout@v4
2222 with :
2323 ref : ${{ inputs.ref }}
24- clean : false
2524 - name : Set cache key
2625 id : cache
2726 run : |
3332 shell : bash
3433 - name : Restore screenshots
3534 id : vrt-screenshots
36- uses : actions/cache@v4
35+ uses : actions/cache/restore @v4
3736 with :
3837 path : ${{ inputs.path }}
3938 key : ${{ steps.cache.outputs.key }}
5150 name : Take screenshots
5251 run : npm run screenshot
5352 shell : bash
53+ - if : ${{ steps.vrt-screenshots.outputs.cache-hit != 'true' }}
54+ name : Restore screenshots
55+ uses : actions/cache/save@v4
56+ with :
57+ path : ${{ inputs.path }}
58+ key : ${{ steps.cache.outputs.key }}
5459 # ref: https://github.com/actions/checkout/issues/692#issuecomment-1112305878
5560 - uses : actions/checkout@v4
5661 with :
You can’t perform that action at this time.
0 commit comments