-
Notifications
You must be signed in to change notification settings - Fork 26
/
action.yml
52 lines (48 loc) · 1.52 KB
/
action.yml
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
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
name: 'TFC - Apply Run'
description: "Applies a run that is paused waiting for confirmation after a plan."
inputs:
# global flags
hostname:
required: false
description: "The hostname of a Terraform Enterprise installation, if using Terraform Enterprise. Defaults to HCP Terraform (app.terraform.io) if `TF_HOSTNAME` environment variable is not set."
default: ""
token:
required: false
description: "The token used to authenticate with HCP Terraform. Defaults to reading `TF_API_TOKEN` environment variable."
default: ""
organization:
required: false
description: "The name of the organization in HCP Terraform. Defaults to reading `TF_CLOUD_ORGANIZATION` environment variable."
default: ""
# required
run:
required: true
description: "The run ID to apply."
# optional
comment:
required: false
description: "An optional comment about the run."
default: ""
outputs:
status:
description: "The result of the operation. Possible values are `Success`, `Error`, `Timeout` or `Noop`."
run_id:
description: "The provided run ID."
run_status:
description: "The current status of the HCP Terraform run."
runs:
using: docker
image: 'docker://hashicorp/tfci:v1.3.1'
args:
- tfci
## global flags
- -hostname=${{ inputs.hostname }}
- -token=${{ inputs.token }}
- -organization=${{ inputs.organization }}
## command
- run
- apply
- -run=${{ inputs.run }}
- -comment=${{ inputs.comment }}