Update cache/restore/action.yaml
This commit is contained in:
parent
24f02807f0
commit
79d7b9986b
6
cache/restore/action.yaml
vendored
6
cache/restore/action.yaml
vendored
@ -13,6 +13,6 @@ runs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Create cache
|
- name: Create cache
|
||||||
run: |
|
run: |
|
||||||
[ ! -f "/cache/$GITHUB_REPOSITORY/${{ inputs.key }}/archive.tar.gz" ] && echo "Cache not found" && exit
|
[ ! -f "/tmp/gitea/$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..."
|
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
|
shell: sh
|
||||||
|
Loading…
Reference in New Issue
Block a user