hashicorp / tfc-workflows-github

HCP Terraform starter workflows and github actions to automate Terraform Cloud CI/CD pipelines.
Mozilla Public License 2.0
124 stars 20 forks source link

Allow add a comment to run #39

Open dkirrane opened 4 months ago

dkirrane commented 4 months ago

Can the hashicorp/tfc-workflows-github/actions/create-run action take a comment as input and add that comment to the Run in TFC.

By default this could be a link back to the GitHub action run url ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}

srlynch1 commented 4 months ago

this is already supported.

you can use message See https://github.com/hashicorp/tfc-workflows-github/blob/main/actions/create-run/action.yml

message: required: false description: "Specifies the message to be associated with this run. Default message will be generated."

dkirrane commented 4 months ago

I'm referring to a comment you can add at the bottom of a run.

message is the title of the run

srlynch1 commented 4 months ago

maybe comment on apply-run then https://github.com/hashicorp/tfc-workflows-github/blob/26a0abd40eccffabc01aa03673ad50a98babf312/actions/apply-run/action.yml#L26

dkirrane commented 4 months ago

Can this be added to create-run also for Speculative Plans?

i.e. Plan only runs can have comments too

image