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

[feat req] Make file name the default

Open Martmists-GH opened this issue 3 years ago • 5 comments

What would you like to be added?

From the README:


Uploading without an artifact name

You can upload an artifact without specifying a name

- uses: actions/upload-artifact@v3
  with:
    path: path/to/artifact/world.txt

If not provided, artifact will be used as the default name which will manifest itself in the UI after upload.


For many purposes it would be beneficial to use the name of the file (world.txt in the above example) instead of artifact

Why is this needed?

Examples are:

  • Projects with a versioning system outside of git tags (e.g. manual versions, semver bots, etc)
  • Projects with versions based on dates (e.g. Ghidra extensions)
  • Projects with versions based on dependencies (e.g. modular systems which use format <version>+<other_version>)

Martmists-GH avatar Sep 30 '22 21:09 Martmists-GH

Agree on this! Why not just parse the file name...

Xottab-DUTY avatar Dec 29 '22 23:12 Xottab-DUTY

I'd like a name for wildcard imports to turn into multiple artifacts. For example, with the following listing:

/artifacts
   foo.zip
   bar.tar.gz
   baz.tar.gz

And the following configuration:

- uses: actions/upload-artifact@v3
  with:
    path: /artifacts/*

It would be nice if three artifacts were created and could be downloaded separately: foo.zip, bar.tar.gz, and baz.tar.gz.

tgross35 avatar Jun 08 '23 02:06 tgross35

seriously, this need to be fixed

wiiznokes avatar Feb 27 '24 14:02 wiiznokes

I would really love this feature as well :)

IvanoAlvino avatar Mar 18 '24 14:03 IvanoAlvino