Update cache/restore/action.yaml
This commit is contained in:
parent
e47bccf336
commit
579e0f79bd
7
cache/restore/action.yaml
vendored
7
cache/restore/action.yaml
vendored
@ -3,14 +3,15 @@ desciption: Restore cached files
|
|||||||
|
|
||||||
inputs:
|
inputs:
|
||||||
key:
|
key:
|
||||||
required: true
|
|
||||||
type: string
|
type: string
|
||||||
default: default
|
required: false
|
||||||
|
default: ${{github.job_id}}
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
steps:
|
steps:
|
||||||
- run: |
|
- name: Create cache
|
||||||
|
run: |
|
||||||
[ ! -f "/cache/$GITHUB_REPOSITORY/${{ inputs.key }}/archive.tar.gz" ] && echo "Cache not found" && exit
|
[ ! -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"
|
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"
|
Loading…
Reference in New Issue
Block a user