feat: Add option to omit stdout from the action's outputs#1391
feat: Add option to omit stdout from the action's outputs#1391ionicsolutions wants to merge 1 commit intopulumi:mainfrom
Conversation
|
Hi @ionicsolutions. Thanks for opening a PR and I'm sorry it took so long to get reviewed. I'm not sure if adding an option to suppress stdout from |
Thanks for the update! The main issue with including stdout in the "outputs" is that it makes it very large even for modestly sized stacks, making If you do not want to add an option suppressing the stdout, an alternative solution would be to add an option that moves the stack outputs to a single key (perhaps already encoded as JSON, similar to the CLI's The goal is to be able to access just the outputs, without knowing their names ahead of time, so that the Pulumi Action can be wrapped into a reusable workflow or custom Action that's used for a range of different programs. I've never had the need to access the captured stdout in subsequent steps, so I might be overlooking use cases where having both the stdout and the universal output access is helpful. From my point of view and the way I've used the Action, this output could be omitted entirely. |
|
We would like to add a new top level output key: Would you be willing to update your PR? |
I can look into this, but it's not a high priority for me right now. |
Adds an option to exclude the captured stdout in the action's output.
This can be useful when using the action's output to populate the environment of subsequent workflow steps by setting
env: ${{ steps.pulumi.outputs }}or jointly exporting the stack outputs to other steps and jobs viatoJSON(steps.pulumi.outputs), where they can then be retrieved as, e.g.,env: ${{ fromJSON(needs.pulumi.outputs.stack-outputs) }}.