Skip to content

How can I archive ALL files from within cwd? #16

@dav-tb

Description

@dav-tb

Hello,

First, thanks for writing this action.

I tried running it with the following settings:

- name: Compress build to TAR archive
  uses: a7ul/tar-action@v1.1.0
  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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions