-
-
Notifications
You must be signed in to change notification settings - Fork 169
Expand file tree
/
Copy pathaction.yaml
More file actions
56 lines (47 loc) · 1.36 KB
/
action.yaml
File metadata and controls
56 lines (47 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: terraform-output
description: Retrieve the root-level outputs from a Terraform configuration.
author: Daniel Flook
inputs:
path:
description: The path to the Terraform root module directory.
required: false
default: "."
workspace:
description: Terraform workspace to get outputs from
required: false
default: "default"
backend_config:
description: List of Terraform backend config values, one per line.
required: false
default: ""
backend_config_file:
description: |
List of Terraform backend config files to use, one per line.
Paths should be relative to the GitHub Actions workspace
required: false
default: ""
outputs:
json_output_path:
description: |
This is the path to all the root module outputs in a JSON file.
The path is relative to the Actions workspace.
For example, with the Terraform config:
```hcl
output "service_hostname" {
value = "example.com"
}
```
The file pointed to by this output will contain:
```json
{
"service_hostname": "example.com"
}
```
Terraform list, set and tuple types are cast to a JSON array, map and object types are cast to a JSON object.
runs:
using: docker
image: ../image/Dockerfile
entrypoint: /entrypoints/output.sh
branding:
icon: globe
color: purple