tar-action
tar-action copied to clipboard
How can I archive ALL files from within cwd?
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.