"Reuse Workflows" article should explain how to share files across workflows
Code of Conduct
- [X] I have read and agree to the GitHub Docs project's Code of Conduct
What article on docs.github.com is affected?
https://docs.github.com/en/actions/using-workflows/reusing-workflows
What part(s) of the article would you like to see updated?
In the Overview section, there is a little explaination about reusing workflows and there is this screenshot
I want to replicate exactly that. Multiple deploy actions which depends on a single build action in my case.
However, reading the article, I wasn't able to find out how to share files across actions. The article ends with sharing strings only.
I think, since that screenshot has been shown as realistic example, the article needs to contain an explanation on how to share built files across workflows.
Additional information
[maintainer edit] Content plan here
@Tomyleexrp
@marcofugaro Thanks so much for opening an issue! I'll triage this for the team to take a look :eyes:
Thanks for opening an issue! We've triaged this issue for technical review by a subject matter expert :eyes:
👋 @marcofugaro, I've flagged this issue for an SME to have a look at.
IIUC, there's no built-in way to share files between different workflows; it's is up to you to manage the artifacts between workflows.
One way, using artifact storage built into GitHub Actions, is to use the upload-artifact action to upload an artifact, and then in a different workflow either use the REST API or a third party action to download that artifact. The GitHub-authored download-artifact action only works for artifacts uploaded in the same workflow.
This is a gentle bump for the docs team that this issue is waiting for technical review.
Thank you @lucascosti, I eventually figured it out.
I noticed there is now an artifacts section in the docs. A mention to that section inside the Reusing workflows article would be enough.
Thank you @lucascosti, I eventually figured it out.
Good to hear!
I noticed there is now an artifacts section in the docs. A mention to that section inside the Reusing workflows article would be enough.
Yep, that article has always been there, but it's a good idea to link to it.
We could probably add the link at the bottom of the Using outputs from a reusable workflow section to link there.
Feel free for yourself (or anyone else) to open a PR 🙇♂️