From b4f0871aa869d420b157ba916f475c47e6afa132 Mon Sep 17 00:00:00 2001 From: Zakary Timson Date: Mon, 7 Aug 2023 01:57:31 +0000 Subject: [PATCH] Add tar/compress/action.yaml --- tar/compress/action.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tar/compress/action.yaml 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 }} )