GitHub Action to fetch outputs from a Terraform Cloud workspace
Given a workspace output foo
in the Terraform Cloud organization org
and workspace name name
output "foo" {
value = "bar
}
- uses: takescoop/[email protected]
id: action
with:
workspace: name
organization: org
token: ${{ secrets.terraform_cloud_token }}
- name: Test string
run: test "${{ steps.action.outputs.foo }}" == "bar"