File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments