-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathaction.yml
36 lines (33 loc) · 1.4 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
name: Wait for Terraform Plan Approval
description: Uses an external service to display a plan and wait for approval/rejection. Polls in the meantime
branding:
icon: watch
color: purple
inputs:
command:
description: 'What to do: either `submit` or `wait`.'
required: true
default: submit
plan_contents:
description: The contents of the plan. ANSI color codes are fine. This should be plaintext, not base64-encoded. Required when `command == submit`.
plan_id:
description: The plan id to wait for. Required when `command == wait`.
external_service_url:
description: Base URL for the external service that will display plans for approval
default: https://terraform-plan-approval.herokuapp.com
timeout_seconds:
description: Give up waiting for approval/rejection after this many seconds
default: 300
polling_period_seconds:
description: The interval (in seconds) at which we'll check the plan status
default: 5
outputs:
plan_id:
description: When `command == submit`, returns the id of the plan generated by the external service.
approval_prompt_url:
description: When `command == submit`, returns the URL that a human should visit to review and approve/reject the plan.
plan_status:
description: 'When `command == wait`, returns the final status of the plan: either "approved", "rejected", or "timed out".'
runs:
using: 'docker'
image: 'Dockerfile'