diff --git a/tar/compress/action.yaml b/tar/compress/action.yaml new file mode 100644 index 0000000..298038b --- /dev/null +++ b/tar/compress/action.yaml @@ -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 }} )