Update cache/restore/action.yaml

This commit is contained in:
Zakary Timson 2023-11-24 00:00:10 +00:00
parent 72583f2887
commit e47bccf336

View File

@ -1,20 +1,16 @@
name: Restore Cache
desciption: Restore cached files
inputs:
key:
required: true
type: string
default: default
runs:
using: composite
container:
image: alpine
volumes:
- /mnt/swarm/gitea/runner/cache:/cache
steps:
- 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"
name: Restore Cache
desciption: Restore cached files
inputs:
key:
required: true
type: string
default: default
runs:
using: composite
steps:
- 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"