From 3873ce230480b12889a856ba0a4143970b927292 Mon Sep 17 00:00:00 2001 From: Peter Mescalchin Date: Fri, 29 Apr 2022 11:45:46 +1000 Subject: [PATCH] `README.md` whitespace cleanup --- README.md | 40 +++++++++++++++++----------------------- 1 file changed, 17 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index 08d7c74..37a30ae 100644 --- a/README.md +++ b/README.md @@ -15,14 +15,14 @@ After you've used the action, subsequent steps in the same job can run arbitrary This action can be run on `ubuntu-latest`, `windows-latest`, and `macos-latest` GitHub Actions runners. When running on `windows-latest` the shell should be set to Bash. -The default configuration installs the latest version of Terraform CLI and installs the wrapper script to wrap subsequent calls to the `terraform` binary. +The default configuration installs the latest version of Terraform CLI and installs the wrapper script to wrap subsequent calls to the `terraform` binary: ```yaml steps: - uses: hashicorp/setup-terraform@v2 ``` -A specific version of Terraform CLI can be installed. +A specific version of Terraform CLI can be installed: ```yaml steps: @@ -31,7 +31,7 @@ steps: terraform_version: 1.1.7 ``` -Credentials for Terraform Cloud ([app.terraform.io](https://app.terraform.io/)) can be configured. +Credentials for Terraform Cloud ([app.terraform.io](https://app.terraform.io/)) can be configured: ```yaml steps: @@ -59,8 +59,7 @@ steps: terraform_wrapper: false ``` -Subsequent steps can access outputs when the wrapper script is installed. - +Subsequent steps can access outputs when the wrapper script is installed: ```yaml steps: @@ -123,17 +122,17 @@ steps: #### Terraform Plan 📖\`${{ steps.plan.outcome }}\` - +
Show Plan - + \`\`\`\n ${process.env.PLAN} \`\`\` - +
- + *Pusher: @${{ github.actor }}, Action: \`${{ github.event_name }}\`, Working Directory: \`${{ env.tf_actions_working_dir }}\`, Workflow: \`${{ github.workflow }}\`*`; - + github.rest.issues.createComment({ issue_number: context.issue.number, owner: context.repo.owner, @@ -200,17 +199,17 @@ steps: #### Terraform Plan 📖\`${{ steps.plan.outcome }}\` - +
Show Plan - + \`\`\`\n ${process.env.PLAN} \`\`\` - +
- + *Pusher: @${{ github.actor }}, Action: \`${{ github.event_name }}\`, Working Directory: \`${{ env.tf_actions_working_dir }}\`, Workflow: \`${{ github.workflow }}\`*`; - + // 3. If we have a comment, update it, otherwise create a new one if (botComment) { github.rest.issues.updateComment({ @@ -233,31 +232,26 @@ steps: The action supports the following inputs: -- `cli_config_credentials_hostname` - (optional) The hostname of a Terraform Cloud/Enterprise instance to +- `cli_config_credentials_hostname` - (optional) The hostname of a Terraform Cloud/Enterprise instance to place within the credentials block of the Terraform CLI configuration file. Defaults to `app.terraform.io`. - - `cli_config_credentials_token` - (optional) The API token for a Terraform Cloud/Enterprise instance to place within the credentials block of the Terraform CLI configuration file. - - `terraform_version` - (optional) The version of Terraform CLI to install. Instead of a full version string, you can also specify a constraint string (see [Semver Ranges](https://www.npmjs.com/package/semver#ranges) for available range specifications). Examples are: `<1.2.0`, `~1.1.0`, `1.1.7` (all three installing the latest available `1.1` version). Prerelease versions can be specified and a range will stay within the given tag such as `beta` or `rc`. If no version is given, it will default to `latest`. - -- `terraform_wrapper` - (optional) Whether to install a wrapper to wrap subsequent calls of +- `terraform_wrapper` - (optional) Whether to install a wrapper to wrap subsequent calls of the `terraform` binary and expose its STDOUT, STDERR, and exit code as outputs named `stdout`, `stderr`, and `exitcode` respectively. Defaults to `true`. ## Outputs This action does not configure any outputs directly. However, when you set the `terraform_wrapper` input -to `true`, the following outputs are available for subsequent steps that call the `terraform` binary. +to `true`, the following outputs are available for subsequent steps that call the `terraform` binary: - `stdout` - The STDOUT stream of the call to the `terraform` binary. - - `stderr` - The STDERR stream of the call to the `terraform` binary. - - `exitcode` - The exit code of the call to the `terraform` binary. ## License