Add tar/compress/action.yaml

This commit is contained in:
Zakary Timson 2023-08-07 01:57:31 +00:00
parent 30d195045e
commit b4f0871aa8

18
tar/compress/action.yaml Normal file
View File

@ -0,0 +1,18 @@
name: Compress Files
desciption: Compress files into a gziped archive
inputs:
pattern:
required: true
type: string
out:
requried: false
type: string
default: archive.tar.gz
runs:
using: composite
container: alpine/git
steps:
- run: |
tar -czvf archive.tar,gz $(find . -type f -name ${{ inputs.pattern }} )