Update cache/action.yaml
This commit is contained in:
parent
fd27848744
commit
72583f2887
43
cache/action.yaml
vendored
43
cache/action.yaml
vendored
@ -1,23 +1,20 @@
|
||||
name: Cache Files
|
||||
desciption: Compress and cache files for later
|
||||
|
||||
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: |
|
||||
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"
|
||||
name: Cache Files
|
||||
desciption: Compress and cache files for later
|
||||
|
||||
inputs:
|
||||
key:
|
||||
required: true
|
||||
type: string
|
||||
default: default
|
||||
pattern:
|
||||
required: true
|
||||
type: string
|
||||
default: *
|
||||
|
||||
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"
|
||||
|
Loading…
Reference in New Issue
Block a user