Update cache/action.yaml
This commit is contained in:
parent
7096d3b52b
commit
f8819a45d5
6
cache/action.yaml
vendored
6
cache/action.yaml
vendored
@ -15,10 +15,10 @@ runs:
|
||||
container:
|
||||
image: alpine
|
||||
volumes:
|
||||
- /mnt/cache:/cache
|
||||
- /mnt/cache:/mnt/cache
|
||||
steps:
|
||||
- run: |
|
||||
tar -czf "archive.tar.gz" ${{ inputs.pattern }}
|
||||
mkdir -p "/cache/$GITHUB_REPOSITORY/${{ inputs.key }}"
|
||||
ARCHIVE="/cache/$GITHUB_REPOSITORY/${{ inputs.key }}/archive.tar.gz"
|
||||
mkdir -p "/mnt/cache/$GITHUB_REPOSITORY/${{ inputs.key }}"
|
||||
ARCHIVE="/mnt/cache/$GITHUB_REPOSITORY/${{ inputs.key }}/archive.tar.gz"
|
||||
[[ ! -f "$ARCHIVE" || "$(md5sum "$ARCHIVE")" != "$(md5sum archive.tar.gz)" ]] && mv archive.tar.gz "$ARCHIVE"
|
||||
|
Loading…
Reference in New Issue
Block a user