upload-artifact icon indicating copy to clipboard operation
upload-artifact copied to clipboard

[feat req] Expose GlobOptions

Open jarruda opened this issue 1 year ago • 0 comments

What would you like to be added?

Expose GlobOptions to the action and use them when globbing files for inclusion into the artifact.

E.g.

- uses: actions/upload-artifact@v3
  with:
    name: my-artifact
    path: path/to/artifact/*
    glob-options:
      implicit-descendants: false

Why is this needed?

There is currently no way to non-recursively upload a directory's contents due to the default behavior of the wildcard operator in the glob library. This behavior includes descendants by default, counter to most glob library behavior (which use the globstar [**] to indicate globbing should be recursive.)

It would also enable other options to be specified which are currently not possible such as following symlinks.

jarruda avatar Jul 19 '23 13:07 jarruda