Is it possible to download Github-Actions artifacts directly?
Asked Answered
M

1

7

When I want to download an artifact I use the following kind of URL: https://github.com/some_user/some_repo/suites/some_id/artifacts/some_id. This however always leads me to a .zip package even if the result is just a single file. In my case this additional layer is totally redundant and I'd like to skip it (it's especially annoying when I build a pdf that I want to be able to preview conveniently).

(How) can I setup the automated workflow to expose unpacked files?

Marden answered 17/8, 2020 at 12:50 Comment(0)
H
10

It's not possible at the moment:

Note: We only currently support downloading an artifact from the GitHub UI by zipping all the files together (this is independent of how the artifact gets uploaded). If you upload an individual file, in the UI the artifact will still present itself as a Zip because that is currently only what we support. We have plans in our roadmap to offer a more enhanced artifact UI experience that will allow you to browse and download individual files from an artifact. No ETA on when that might arrive, but it is something that we really really want to enhance.

https://github.com/actions/upload-artifact/issues/3#issuecomment-598820814

This is a limitation of our APIs and our UI, some of my earlier comments go into more details #39 (comment) and #39 (comment)

If you also look at our public api to download an artifact, you'll notice that we currently require a zip :archive_format: https://developer.github.com/v3/actions/artifacts/#download-an-artifact and that is what effectively is being used when you click to download an artifact. Ideally we should have options that let get the raw contents of whatever was uploaded without any archiving format, but we currently don't have any solutions disappointed

https://github.com/actions/upload-artifact/issues/109#issuecomment-671853296

Hayashi answered 17/8, 2020 at 14:5 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.