tar-action icon indicating copy to clipboard operation
tar-action copied to clipboard

How can I archive ALL files from within cwd?

Open Crono1981 opened this issue 2 years ago • 2 comments

Hello,

First, thanks for writing this action.

I tried running it with the following settings:

- name: Compress build to TAR archive
  uses: a7ul/[email protected]
  with:
    command: c
    cwd: ./site
    files: "**/*.*"
    outPath: site.tar.gz

Unfortunately, glob patterns don't seem to be supported.

I have also tried not providing the files argument, hoping maybe it would just assume it must archive everything, but as stated in documentation, it is a required argument and therefore it doesn't work.

Is there an easy way to tell the action to archive all files and directories within the current working directory? At this point the only other way I can think of is running a find . -type f command prior to the action and set the result into an array variable. I'm not sure how to do that with GitHub Actions - or if it can be done at all.

Any insight would help a lot.

Crono1981 avatar Sep 06 '22 18:09 Crono1981