Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add artifact support for multi-job workflows #193

Open
jmealo opened this issue Mar 28, 2024 · 1 comment
Open

Add artifact support for multi-job workflows #193

jmealo opened this issue Mar 28, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@jmealo
Copy link
Collaborator

jmealo commented Mar 28, 2024

Reported in #187

It appears if a workflow contains multiple jobs, the post-run job will fail as the log files are no longer present in the file system.

In order to address this we'd need to use actions/upload-artifact and actions/download-artifact to pass the log files between jobs.

I haven't researched whether this is something that can be done declaratively by end-users or if we need to make changes to the post-run.js code to support this.

@themightychris
Copy link
Member

themightychris commented Apr 4, 2024

@jmealo IME it's pretty common for actions to leave it to the workflow author to insert actions/upload-artifact or actions/download-artifact steps themselves if they want to pass artifacts between jobs, I don't think I've seen many/any actions that build in that functionality. Rather we just document and/or put in an output value the path where our action leaves useful files

I think we'd want our responsibility to end at providing an example in the README showing how to use background-action together with actions/upload-artifact and actions/download-artifact to carry a log across jobs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants