Skip to content

Commit

Permalink
gh-actions/docker/cache/restore: Rm original dir while extracting (#…
Browse files Browse the repository at this point in the history
…2477)

Signed-off-by: Ryan Northey <[email protected]>
  • Loading branch information
phlax authored Nov 25, 2024
1 parent 0317bc8 commit 00889be
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions gh-actions/docker/cache/restore/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ inputs:
mount-tmpfs:
type: string
default: true
overwrite:
type: boolean
default: true

runs:
using: "composite"
Expand All @@ -23,3 +26,7 @@ runs:
systemctl start docker
mount-tmpfs: ${{ inputs.mount-tmpfs }}
run-as-sudo: true
- if: ${{ fromJSON(inputs.overwrite) }}
run: |
sudo rm -rf /var/lib/docker.orig &
shell: bash

0 comments on commit 00889be

Please sign in to comment.