From 3938fc7248d4d8c83c48fcb37591993a115de92d Mon Sep 17 00:00:00 2001 From: "Jason N." <33561705+JasonN3@users.noreply.github.com> Date: Thu, 7 Mar 2024 11:53:00 -0500 Subject: [PATCH] ensure dirs exists after load --- action.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index ee0aed0..9e70fd1 100644 --- a/action.yml +++ b/action.yml @@ -64,8 +64,8 @@ runs: - name: Make cache directory shell: bash run: | - sudo mkdir -p /cache/dnf /cache/skopeo - sudo chmod 777 /cache /cache/dnf /cache/skopeo + sudo mkdir /cache + sudo chmod 777 /cache - name: Load dnf cache id: load_dnf_cache @@ -87,6 +87,11 @@ runs: path: /cache/skopeo key: ${{ inputs.skopeo_cache_key || env.skopeo_cache_key }} + - name: Ensure cache directories exist + shell: bash + run: | + mkdir /cache/dnf /cache/skopeo + - name: Run docker image shell: bash run: |