From 579e0f79bddcc4ae2421067173664b25c0e3752d Mon Sep 17 00:00:00 2001 From: Zakary Timson Date: Fri, 24 Nov 2023 00:11:20 +0000 Subject: [PATCH] Update cache/restore/action.yaml --- cache/restore/action.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cache/restore/action.yaml b/cache/restore/action.yaml index b16eb1e..be45db6 100644 --- a/cache/restore/action.yaml +++ b/cache/restore/action.yaml @@ -3,14 +3,15 @@ desciption: Restore cached files inputs: key: - required: true type: string - default: default + required: false + default: ${{github.job_id}} runs: using: composite steps: - - run: | + - 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" + echo "Cache restored: /cache/$GITHUB_REPOSITORY/${{ inputs.key }}/archive.tar.gz" \ No newline at end of file