Add cache/restore/action.yaml

This commit is contained in:
Zakary Timson 2023-08-07 02:23:39 +00:00
parent 0e724eac13
commit 8d486b24b8

22
cache/restore/action.yaml vendored Normal file
View 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"