We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6608430 commit 4dedc25Copy full SHA for 4dedc25
tasks/terraform-apply/action.yml
@@ -25,6 +25,10 @@ inputs:
25
snowflake-warehouse:
26
description: The Snowflake warehouse
27
required: true
28
+ import-state:
29
+ description: Imports existing state of existing objects
30
+ required: true
31
+ default: 'false'
32
33
runs:
34
using: "composite"
@@ -70,6 +74,13 @@ runs:
70
74
shell: bash
71
75
working-directory: ${{ inputs.working-directory }}
72
76
77
+ - name: Create Current State File
78
+ id: create-state
79
+ if: ${{ inputs.import-state == 'true' }}
80
+ run: .\helpers\import_objects.ps1
81
+ shell: pwsh
82
+ working-directory: ${{ inputs.working-directory }}
83
+
73
84
- name: Terraform Plan
85
id: plan
86
if: github.event_name == 'pull_request'
0 commit comments