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 6, 2024
1 parent 08fc744 commit 8761620
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/composite/restore-cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ runs:
if: runner.os == 'Linux'
run: |
sudo apt install -y smbclient
if smbclient //${{inputs.server-hostname}}/${{inputs.server-share}} -U ${{inputs.server-username}}%${{inputs.server-password}} -c 'ls "${{steps.build-dest-path.outputs.TARGET_PATH}}"' 2>/dev/null | grep -q "${{steps.build-dest-path.outputs.TARGET_PATH}}"; then
if smbclient //${{inputs.server-hostname}}/${{inputs.server-share}} -U ${{inputs.server-username}}%${{inputs.server-password}} -c 'ls "${{steps.build-dest-path.outputs.TARGET_PATH}}"' 2>/dev/null || true | grep -q "${{steps.build-dest-path.outputs.TARGET_PATH}}"; then
echo "CACHE_HIT=true" >> "$GITHUB_OUTPUT"
else
echo "CACHE_HIT=false" >> "$GITHUB_OUTPUT"
Expand Down
2 changes: 1 addition & 1 deletion .github/composite/save-cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ runs:
if: runner.os == 'Linux'
run: |
sudo apt install -y smbclient
if smbclient //${{inputs.server-hostname}}/${{inputs.server-share}} -U ${{inputs.server-username}}%${{inputs.server-password}} -c 'ls "${{steps.build-dest-path.outputs.TARGET_PATH}}"' 2>/dev/null | grep -q "${{steps.build-dest-path.outputs.TARGET_PATH}}"; then
if smbclient //${{inputs.server-hostname}}/${{inputs.server-share}} -U ${{inputs.server-username}}%${{inputs.server-password}} -c 'ls "${{steps.build-dest-path.outputs.TARGET_PATH}}"' 2>/dev/null || true | grep -q "${{steps.build-dest-path.outputs.TARGET_PATH}}"; then
echo "CACHE_HIT=true" >> "$GITHUB_OUTPUT"
else
echo "CACHE_HIT=false" >> "$GITHUB_OUTPUT"
Expand Down

0 comments on commit 8761620

Please sign in to comment.