Update cache/store/action.yaml
This commit is contained in:
parent
be21b484c6
commit
39f621616e
2
cache/store/action.yaml
vendored
2
cache/store/action.yaml
vendored
@ -21,4 +21,4 @@ runs:
|
|||||||
tar -czf "archive.tar.gz" ${{ inputs.pattern }}
|
tar -czf "archive.tar.gz" ${{ inputs.pattern }}
|
||||||
mkdir -p "/cache/$GITHUB_REPOSITORY/${{ inputs.key }}"
|
mkdir -p "/cache/$GITHUB_REPOSITORY/${{ inputs.key }}"
|
||||||
ARCHIVE="/cache/$GITHUB_REPOSITORY/${{ inputs.key }}/archive.tar.gz"
|
ARCHIVE="/cache/$GITHUB_REPOSITORY/${{ inputs.key }}/archive.tar.gz"
|
||||||
[ ! -f "$ARCHIVE" || "$(md5sum "$ARCHIVE")" != "$(md5sum archive.tar.gz)" ] && mv archive.tar.gz "$ARCHIVE"
|
[[ ! -f "$ARCHIVE" ] || [ "$(md5sum "$ARCHIVE")" != "$(md5sum archive.tar.gz)" ]] && mv archive.tar.gz "$ARCHIVE"
|
||||||
|
Loading…
Reference in New Issue
Block a user