Skip to content

Output to file and comment at the same time. #1412

@jamengual

Description

@jamengual

Feature Overview

We use the output to file and then pass it to the summary output and other steps happening later, but we need to comment on the PR simultaneously, but since `--output ${{ steps.vars.outputs.summary_file }} disables the PR comment. We had to run the plan twice, which is sometimes really slow.

It would be nice to be able to output to the file and comment to the PR at the same time or even pipe in the plan from a file to then comment on the PR ( although not as nice and requires two command)

reference https://github.com/cloudposse/github-action-atmos-terraform-plan/blob/main/action.yml#L201 ( this one only outputs to file, so I had to duplicate the step to comment to the PR)

Why is the feature needed?

to comment to the PR and output to a file for further processing

note

nothing

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions