This action is a wrapper for the Terraform Helper (https://github.com/hashicorp-community/tf-helper).
jobs:
build:
# ...
steps:
- name: Set Terraform workspace variable
uses: timarenz/tf-helper-action:v0.0.1
with:
command: workspace new
org: my-tfc-org
workspace: my-new-workspace
token: ${{ secret.TFC_API_TOKEN }}
Required The tfh command you want to run. No need to add tfh itself. For examples see: https://github.com/hashicorp-community/tf-helper#subcommands"
Required Terraform Cloud/Enterprise organization to use.
Required Terraform Cloud/Enterprise workspace to use.
Required Token to use to connect to Terraform Cloud/Enterprise.
Hostname of a Terraform (Enterprise) instance. No need to change unless you have a self-hosted installation.. Default "app.terraform.io"
.