dagger-for-github icon indicating copy to clipboard operation
dagger-for-github copied to clipboard

✨ Provide `stdout` output when `dagger` execution fails

Open julianmaze opened this issue 9 months ago • 0 comments

What are you trying to do?

I want to utilize the stdout of the dagger call regardless of its exit code. I have pipelines that print data, then fail or succeed based on the contents of that data. I would like to include that data in step summaries and interact with it in subsequent steps and jobs within my GHA workflow.

Why is this important to you?

This is important because I want the stdout output regardless of the dagger exit code.

How are you currently working around this?

I am not able to work around this using this action. I do believe, however, that splitting out the following lines of code into an action step that runs always() should be all that is needed. https://github.com/dagger/dagger-for-github/blob/71c85a53eb127607a46ddd0528a6acdf10f691b5/action.yml#L90-L99

julianmaze avatar Jun 02 '25 15:06 julianmaze