Update cache/action.yaml
This commit is contained in:
parent
8f18d935a6
commit
74fef087fb
6
cache/action.yaml
vendored
6
cache/action.yaml
vendored
@ -18,8 +18,6 @@ runs:
|
||||
- /mnt/swarm/gitea/runner/cache:/cache
|
||||
steps:
|
||||
- run: |
|
||||
tar -czf "archive.tar.gz" ${{ inputs.pattern }}
|
||||
mkdir -p "/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"
|
||||
echo "Created cache: $ARCHIVE"
|
||||
tar --overwrite -czf "/cache/$GITHUB_REPOSITORY/${{ inputs.key }}/archive.tar.gz" ${{ inputs.pattern }}
|
||||
echo "Created cache: /cache/$GITHUB_REPOSITORY/${{ inputs.key }}/archive.tar.gz"
|
||||
|
Loading…
Reference in New Issue
Block a user