Add cache/restore/action.yaml
This commit is contained in:
parent
0e724eac13
commit
8d486b24b8
22
cache/restore/action.yaml
vendored
Normal file
22
cache/restore/action.yaml
vendored
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
name: Restore Cache
|
||||||
|
desciption: Restore cached files
|
||||||
|
|
||||||
|
inputs:
|
||||||
|
key:
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
default: default
|
||||||
|
pattern:
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
|
||||||
|
runs:
|
||||||
|
using: composite
|
||||||
|
container:
|
||||||
|
image: alpine
|
||||||
|
volumes:
|
||||||
|
- /mnt/swarm/gitea/runner/cache:/cache
|
||||||
|
steps:
|
||||||
|
- run: |
|
||||||
|
mv "/cache/$GITHUB_REPOSITORY/${{ inputs.key }}/archive.tar.gz" .
|
||||||
|
tar -xzf "archive.tar.gz"
|
Loading…
Reference in New Issue
Block a user