Update cache/store/action.yaml

This commit is contained in:
Zakary Timson 2023-08-07 02:33:01 +00:00
parent bc7c6511e8
commit ac4e59c158

View File

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