-
Notifications
You must be signed in to change notification settings - Fork 617
Description
I use upload-artifact
in several jobs to upload various files. Example:
...
- name: uploadapp
uses: actions/upload-artifact@v2
with:
name: app
path: js/app.js
...
In the final «package» job (that depends on previous jobs as appropriate) I need all these files to be put in the same places they were taken from. So. continuing with the example, I want app.js
to be found under js
and not, for example, under app/js
(as would happen if I use download-artifact
without arguments). In other words, the result of running the upload-artifact
and download-artifact
actions across all jobs should be the same as if only a single job was run, with all steps from all jobs performed in sequence but upload-artifact
and download-artifact
omitted.
I have many artifacts and they reside in different places. Creating many steps invoking download-artifact
with paths wired in by hand is tedious and will lead to errors — at worst, some artifacts may even be forgotten altogether. I would like to use the option of downloading all artifacts in one step, but that also places them back from whence they were taken from.
How can I achieve this? Possibly a feature or some explanatory documentation can be added?