actions/cache/store/action.yaml

24 lines
521 B
YAML

name: Compress Files
desciption: Compress files into a gziped archive
inputs:
key:
required: true
type: string
default: default
pattern:
required: true
type: string
runs:
using: composite
container:
image: alpine
volumes:
- /mnt/swarm/gitea/runner/cache:/cache
steps:
- run: |
tar -czf "archive.tar.gz" ${{ inputs.pattern }}
mkdir -p "/cache/$GITHUB_REPOSITORY/${{ inputs.key }}"
mv "archive.tar.gz" "/cache/$GITHUB_REPOSITORY/${{ inputs.key }}/"