Update cache/action.yaml
This commit is contained in:
parent
9b52a68118
commit
797e8607cb
44
cache/action.yaml
vendored
44
cache/action.yaml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user