Update cache/restore/action.yaml
This commit is contained in:
parent
797e8607cb
commit
66e4f8a062
35
cache/restore/action.yaml
vendored
35
cache/restore/action.yaml
vendored
@ -1,18 +1,19 @@
|
|||||||
name: Restore Cache
|
name: Restore Cache
|
||||||
desciption: Restore cached files
|
desciption: Restore cached files
|
||||||
|
|
||||||
inputs:
|
inputs:
|
||||||
key:
|
key:
|
||||||
type: string
|
type: string
|
||||||
required: false
|
required: false
|
||||||
default: ${{github.job_id}}
|
description: Key to store cache under
|
||||||
|
default: ${{github.run_id}}
|
||||||
runs:
|
|
||||||
using: composite
|
runs:
|
||||||
steps:
|
using: composite
|
||||||
- name: Create cache
|
steps:
|
||||||
run: |
|
- name: Create cache
|
||||||
[ ! -f "/cache/$GITHUB_REPOSITORY/${{ inputs.key }}/archive.tar.gz" ] && echo "Cache not found" && exit
|
run: |
|
||||||
tar --overwrite -xzf "/cache/$GITHUB_REPOSITORY/${{ inputs.key }}/archive.tar.gz"
|
[ ! -f "/cache/$GITHUB_REPOSITORY/${{ inputs.key }}/archive.tar.gz" ] && echo "Cache not found" && exit
|
||||||
echo "Cache restored: /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"
|
||||||
shell: sh
|
shell: sh
|
Loading…
Reference in New Issue
Block a user