actions / upload-artifact

MIT License
3.26k stars 739 forks source link

[feat req] Expose GlobOptions #416

Open jarruda opened 1 year ago

jarruda commented 1 year ago

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.