Update cache/store/action.yaml

This commit is contained in:
Zakary Timson 2023-08-07 02:44:19 +00:00
parent 39f621616e
commit 7dd46dda4e

View File

@ -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"