Skip to content

Commit e402f97

Browse files
committed
Revert "to revert"
This reverts commit b220694.
1 parent b220694 commit e402f97

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

action.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ runs:
5959
shell: bash
6060
run: echo "lfs_data_cache_sha=${{inputs.lfs_sha}}" >> $GITHUB_ENV
6161

62-
- name: Cached LFS data
62+
- name: Restore cached LFS data
6363
id: cache-lfs
64-
uses: actions/cache@v4
64+
uses: actions/cache/restore@v4
6565
with:
6666
enableCrossOsArchive: true
6767
path: 'lfs_data_cache/lfs_data'
@@ -125,6 +125,17 @@ runs:
125125
fetch-depth: 1
126126
lfs: true
127127

128+
- name: Save LFS data cache
129+
if: |
130+
steps.cache-lfs.outputs.cache-hit != 'true' &&
131+
inputs.type == 'producer'
132+
id: cache-lfs-save
133+
uses: actions/cache/save@v4
134+
with:
135+
enableCrossOsArchive: true
136+
path: 'lfs_data_cache/lfs_data'
137+
key: lfs-data-${{env.lfs_data_cache_sha}}-${{inputs.cache_postfix}}
138+
128139
- name: Setup LFS data
129140
working-directory: ${{github.workspace}}
130141
shell: bash

0 commit comments

Comments
 (0)