-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
37 lines (35 loc) · 958 Bytes
/
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
name: GitHub actions Terraform destroy
author: Gabriel Ferreira <[email protected]>
description: GitHub action used in Terraform destroy workflow
branding:
icon: feather
color: gray-dark
inputs:
TERRAFORM_DESTROY_STEP:
description: 'Tell to the action if it is a step before or after terraform destroy'
required: true
ENVIRONMENT:
description: 'The GCP environment'
required: true
REGION:
description: 'The GCP region'
required: true
SERVICE:
description: 'The GCP service'
required: true
RESOURCE:
description: 'The GCP resource name'
required: true
GITHUB_TOKEN:
description: 'The github token used to open PR'
required: true
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.TERRAFORM_DESTROY_STEP }}
- ${{ inputs.ENVIRONMENT }}
- ${{ inputs.REGION }}
- ${{ inputs.SERVICE }}
- ${{ inputs.RESOURCE }}
- ${{ inputs.GITHUB_TOKEN }}