Update cache/store/action.yaml

This commit is contained in:
Zakary Timson 2023-08-07 02:38:52 +00:00
parent 6e547f538d
commit be21b484c6

View File

@ -20,4 +20,5 @@ runs:
- run: | - run: |
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 }}"
[ "$(md5sum "/cache/$GITHUB_REPOSITORY/${{ inputs.key }}/archive.tar.gz")" != "$(md5sum archive.tar.gz)" ] && mv archive.tar.gz "/cache/$GITHUB_REPOSITORY/${{ inputs.key }}/" ARCHIVE="/cache/$GITHUB_REPOSITORY/${{ inputs.key }}/archive.tar.gz"
[ ! -f "$ARCHIVE" || "$(md5sum "$ARCHIVE")" != "$(md5sum archive.tar.gz)" ] && mv archive.tar.gz "$ARCHIVE"