Update cache/restore/action.yaml
This commit is contained in:
parent
72583f2887
commit
e47bccf336
36
cache/restore/action.yaml
vendored
36
cache/restore/action.yaml
vendored
@ -1,20 +1,16 @@
|
|||||||
name: Restore Cache
|
name: Restore Cache
|
||||||
desciption: Restore cached files
|
desciption: Restore cached files
|
||||||
|
|
||||||
inputs:
|
inputs:
|
||||||
key:
|
key:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
default: default
|
default: default
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
container:
|
steps:
|
||||||
image: alpine
|
- run: |
|
||||||
volumes:
|
[ ! -f "/cache/$GITHUB_REPOSITORY/${{ inputs.key }}/archive.tar.gz" ] && echo "Cache not found" && exit
|
||||||
- /mnt/swarm/gitea/runner/cache:/cache
|
tar --overwrite -xzf "/cache/$GITHUB_REPOSITORY/${{ inputs.key }}/archive.tar.gz"
|
||||||
steps:
|
echo "Cache restored: /cache/$GITHUB_REPOSITORY/${{ inputs.key }}/archive.tar.gz"
|
||||||
- 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"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user