Skip to content

Commit

Permalink
Update save-cache and restore-cache actions 11/06/2024 | 24w45a3
Browse files Browse the repository at this point in the history
  • Loading branch information
GamesTrap committed Nov 7, 2024
1 parent 1cb47ae commit 48aae32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/composite/restore-cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,11 @@ runs:
Remove-PSDrive -Name "X"
- name: Extract cache (7z)
shell: bash
if: steps.check-cache-linux.outputs.CACHE_HIT == 'true' || steps.check-cache-windows.outputs.CACHE_HIT == 'true'
run: |
7z x -aos -bb0 -bse0 -bsp2 -pdefault -sccUTF-8 -o${{inputs.folder-path}} '${{inputs.key}}.7z'
- name: Cleanup cache
shell: bash
if: steps.check-cache-linux.outputs.CACHE_HIT == 'true' || steps.check-cache-windows.outputs.CACHE_HIT == 'true'
run: |
rm '${{inputs.key}}.7z'
1 change: 1 addition & 0 deletions .github/composite/save-cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,6 @@ runs:
smbclient //${{inputs.server-hostname}}/${{inputs.server-share}} -U ${{inputs.server-username}}%${{inputs.server-password}} -c 'prompt; recurse; mkdir "${{steps.build-dest-path.outputs.TARGET_FOLDER_PATH}}"; put "${{inputs.key}}.7z" "${{steps.build-dest-path.outputs.TARGET_PATH}}"'
- name: Cleanup cache
shell: bash
if: steps.check-cache-linux.outputs.CACHE_HIT == 'false' || steps.check-cache-windows.outputs.CACHE_HIT == 'false'
run: |
rm '${{inputs.key}}.7z'

0 comments on commit 48aae32

Please sign in to comment.