Update cache/store/action.yaml

This commit is contained in:
Zakary Timson 2023-08-07 02:31:41 +00:00
parent 1e739e062e
commit bc7c6511e8

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 }}"
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 }}/"