From 66e4f8a062f73d9fb7ffa8922e847c4498228aa9 Mon Sep 17 00:00:00 2001 From: Zakary Timson Date: Wed, 20 Dec 2023 04:34:54 +0000 Subject: [PATCH] Update cache/restore/action.yaml --- cache/restore/action.yaml | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/cache/restore/action.yaml b/cache/restore/action.yaml index 624053c..4466e42 100644 --- a/cache/restore/action.yaml +++ b/cache/restore/action.yaml @@ -1,18 +1,19 @@ -name: Restore Cache -desciption: Restore cached files - -inputs: - key: - type: string - required: false - default: ${{github.job_id}} - -runs: - using: composite - steps: - - name: Create cache - 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: + type: string + required: false + description: Key to store cache under + default: ${{github.run_id}} + +runs: + using: composite + steps: + - name: Create cache + 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" shell: sh \ No newline at end of file