Update cache/restore/action.yaml

This commit is contained in:
Zakary Timson 2024-05-13 10:55:55 -04:00
parent 24f02807f0
commit 79d7b9986b

View File

@ -13,6 +13,6 @@ runs:
steps:
- name: Create cache
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" || echo "Failed..."
[ ! -f "/tmp/gitea/$GITHUB_REPOSITORY/${{ inputs.key }}/archive.tar.gz" ] && echo "Cache not found" && exit
tar --overwrite -xzf "/tmp/gitea/$GITHUB_REPOSITORY/${{ inputs.key }}/archive.tar.gz" && echo "Cache restored: /cache/$GITHUB_REPOSITORY/${{ inputs.key }}/archive.tar.gz" || echo "Failed..."
shell: sh