Skip to content

Wrapper behavior is unexpected: please update log message #85

@colindembovsky

Description

@colindembovsky

Hi team - thank you for your work on this action! I have one piece of feedback: the wrapper behavior is unexpected. Here's a snippet of a workflow that I was attempting:

steps:
  - name: Install TF
    uses: hashicorp/setup-terraform@v1
  - name: Get webappURL
    run: |
      $url=$(terraform output -raw webappURL)
      echo "::set-output name=webapp_url::$url"

Instead of url being cdtailwindgha-dev.azurewebsites.net (the expected value from the terraform output), the value was set to:

[command]/home/runner/work/_temp/d6cc4736-dad6-4784-b42d-6c80ea5e10da/terraform-bin output -raw slotURL cdtailwindgha-dev.azurewebsites.net::debug::Terraform exited with code 0. ::debug::stdout: cdtailwindgha-dev.azurewebsites.net ::debug::stderr: ::debug::exitcode: 0 ::set-output name=stdout::cdtailwindgha-dev.azurewebsites.net ::set-output name=stderr:: ::set-output name=exitcode::0

Admittedly, without reading the docs on the setup-terraform action I expected the above to work - but the output webapp_url was set to the output of the wrapper. I thrashed for hours trying to figure out what was going on.

Eventually I was pointed to this behavior by some helpful folks at GitHub.

Can I request that you put a log message stating that the wrapper is being used and a link to the readme? That way users like me who don't read the docs initially can be prompted to do so!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions