From 102b8259e3d9c77a5a5c39ba3f12f5ee2682e61f Mon Sep 17 00:00:00 2001 From: Ryan Northey Date: Sun, 24 Nov 2024 22:57:47 +0000 Subject: [PATCH] `gh-actions/docker/cache/restore`: Rm original dir while extracting Signed-off-by: Ryan Northey --- gh-actions/docker/cache/restore/action.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gh-actions/docker/cache/restore/action.yml b/gh-actions/docker/cache/restore/action.yml index 4765af92a..4948f6c38 100644 --- a/gh-actions/docker/cache/restore/action.yml +++ b/gh-actions/docker/cache/restore/action.yml @@ -8,6 +8,9 @@ inputs: mount-tmpfs: type: string default: true + overwrite: + type: boolean + default: true runs: using: "composite" @@ -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