Skip to content

Commit bcf34a2

Browse files
committed
test: なんかおかしい
1 parent 2b9367b commit bcf34a2

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/actions/screenshots/action.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ runs:
2121
- uses: actions/checkout@v4
2222
with:
2323
ref: ${{ inputs.ref }}
24-
clean: false
2524
- name: Set cache key
2625
id: cache
2726
run: |
@@ -33,7 +32,7 @@ runs:
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 }}
@@ -51,6 +50,12 @@ runs:
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:

0 commit comments

Comments
 (0)