From e47bccf336b80803be40a75bbffb72efd8842be1 Mon Sep 17 00:00:00 2001 From: Zakary Timson Date: Fri, 24 Nov 2023 00:00:10 +0000 Subject: [PATCH] Update cache/restore/action.yaml --- cache/restore/action.yaml | 36 ++++++++++++++++-------------------- 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/cache/restore/action.yaml b/cache/restore/action.yaml index b399042..b16eb1e 100644 --- a/cache/restore/action.yaml +++ b/cache/restore/action.yaml @@ -1,20 +1,16 @@ -name: Restore Cache -desciption: Restore cached files - -inputs: - key: - required: true - type: string - default: default - -runs: - using: composite - container: - image: alpine - volumes: - - /mnt/swarm/gitea/runner/cache:/cache - steps: - - run: | - [ ! -f "/cache/$GITHUB_REPOSITORY/${{ inputs.key }}/archive.tar.gz" ] && echo "Cache not found" && exit - tar --overwrite -xzf "/cache/$GITHUB_REPOSITORY/${{ inputs.key }}/archive.tar.gz" - echo "Cache restored: /cache/$GITHUB_REPOSITORY/${{ inputs.key }}/archive.tar.gz" +name: Restore Cache +desciption: Restore cached files + +inputs: + key: + required: true + type: string + default: default + +runs: + using: composite + steps: + - run: | + [ ! -f "/cache/$GITHUB_REPOSITORY/${{ inputs.key }}/archive.tar.gz" ] && echo "Cache not found" && exit + tar --overwrite -xzf "/cache/$GITHUB_REPOSITORY/${{ inputs.key }}/archive.tar.gz" + echo "Cache restored: /cache/$GITHUB_REPOSITORY/${{ inputs.key }}/archive.tar.gz"