actions/cache/action.yaml

22 lines
564 B
YAML
Raw Normal View History

2023-11-23 18:59:46 -05:00
name: Cache Files
desciption: Compress and cache files for later
inputs:
key:
type: string
2023-11-23 19:12:45 -05:00
required: false
default: ${{github.job_id}}
2023-11-23 18:59:46 -05:00
pattern:
type: string
2023-11-23 19:12:45 -05:00
required: false
default: "*"
2023-11-23 18:59:46 -05:00
runs:
using: composite
steps:
- run: |
mkdir -p "/cache/$GITHUB_REPOSITORY/${{ inputs.key }}"
tar --overwrite -czf "/cache/$GITHUB_REPOSITORY/${{ inputs.key }}/archive.tar.gz" ${{ inputs.pattern }}
echo "Created cache: /cache/$GITHUB_REPOSITORY/${{ inputs.key }}/archive.tar.gz"
2023-11-23 19:18:26 -05:00
shell: sh