API to download artifact #25345
-
Is there an API for Github Actions? I need to download an artifact produced by actions/upload-artifact. I don’t mean to download the artifact for a subsequent job, like I can do with actions/download-artifact. Thanks, Danilo |
Beta Was this translation helpful? Give feedback.
Replies: 13 comments
-
Bump as I’m looking for this as well. |
Beta Was this translation helpful? Give feedback.
-
Hi @tuler, Thank you for being here and our apologies for the delay in response. At this time there is not, however this is very much on the roadmap and being worked on. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your response. Can you provide ETA for this API? |
Beta Was this translation helpful? Give feedback.
-
+1 very upsetting that so cool feature released without API… |
Beta Was this translation helpful? Give feedback.
-
We’re working on this now. Rough ETA is 4-6 weeks. |
Beta Was this translation helpful? Give feedback.
-
Is the API available now? |
Beta Was this translation helpful? Give feedback.
-
Yes, this is now available. |
Beta Was this translation helpful? Give feedback.
-
Is there a way to get the latest Run id? |
Beta Was this translation helpful? Give feedback.
-
With, of course, USER, REPO and WORKFLOW adjusted |
Beta Was this translation helpful? Give feedback.
-
The documentation is wrong. It says everyone with read access can download artifacts, but when I try the examples, it wants admin rights. https://developer.github.com/v3/actions/artifacts/#download-an-artifact EDIT: Also, when I give curl an admin user, it downloads the file right away and does not respond with the “Location:” as described. EDIT2: Ah ok, it is intended to download the file right away but gives the Location for potential subsequent accesses. This was not immediately clear. Still, the rights issue still persists and it would be a bit of hassle to always have an admin user (token) handy in all our CI workflows that want to use this API. |
Beta Was this translation helpful? Give feedback.
-
This is great, but no one has updated the main github documentation. On the page persisting-workflow-data-using-artifacts it says: It seems like this has been superceeded; can someone from GitHub please update the documentation? |
Beta Was this translation helpful? Give feedback.
-
@jpfeuffer I have the same question, documentation says only read access is required but when I run the command, it says “Must have admin rights to Repository.” Do you think it could be because I’m working on a forked repository and not the original one? |
Beta Was this translation helpful? Give feedback.
-
Bump as I really need this too. |
Beta Was this translation helpful? Give feedback.
Yes, this is now available.
https://developer.github.com/v3/actions/artifacts/