From 797e8607cb4513503e6b47b3ddb06faf98e3758c Mon Sep 17 00:00:00 2001 From: Zakary Timson Date: Wed, 20 Dec 2023 04:34:25 +0000 Subject: [PATCH] Update cache/action.yaml --- cache/action.yaml | 44 +++++++++++++++++++++++--------------------- 1 file changed, 23 insertions(+), 21 deletions(-) diff --git a/cache/action.yaml b/cache/action.yaml index b9a8963..5620be6 100644 --- a/cache/action.yaml +++ b/cache/action.yaml @@ -1,21 +1,23 @@ -name: Cache Files -desciption: Compress and cache files for later - -inputs: - key: - type: string - required: false - default: ${{github.job_id}} - pattern: - type: string - required: false - default: "*" - -runs: - using: composite - steps: - - run: | - mkdir -p "/cache/$GITHUB_REPOSITORY/${{ inputs.key }}" - tar --overwrite -czf "/cache/$GITHUB_REPOSITORY/${{ inputs.key }}/archive.tar.gz" ${{ inputs.pattern }} - echo "Created cache: /cache/$GITHUB_REPOSITORY/${{ inputs.key }}/archive.tar.gz" - shell: sh +name: Cache Files +desciption: Compress and cache files for later + +inputs: + key: + type: string + required: false + description: Key to store cache under + default: ${{github.run_id}} + pattern: + type: string + required: false + description: Files that will be cached + default: "*" + +runs: + using: composite + steps: + - run: | + mkdir -p "/cache/$GITHUB_REPOSITORY/${{ inputs.key }}" + tar --overwrite -czf "/cache/$GITHUB_REPOSITORY/${{ inputs.key }}/archive.tar.gz" ${{ inputs.pattern }} + echo "Created cache: /cache/$GITHUB_REPOSITORY/${{ inputs.key }}/archive.tar.gz" + shell: sh