actions/cache/restore/action.yaml

20 lines
400 B
YAML
Raw Normal View History

2023-08-06 22:23:39 -04:00
name: Restore Cache
desciption: Restore cached files
inputs:
key:
required: true
type: string
default: default
runs:
using: composite
container:
image: alpine
volumes:
2023-08-06 22:57:26 -04:00
- /mnt/cache:/mnt/cache
2023-08-06 22:23:39 -04:00
steps:
- run: |
2023-08-06 22:57:26 -04:00
mv "/mnt/cache/$GITHUB_REPOSITORY/${{ inputs.key }}/archive.tar.gz" . && \
2023-08-06 22:34:15 -04:00
tar -xzf "archive.tar.gz" || \
echo "Cache not found"