Skip to content

Commit 4dedc25

Browse files
added ability to import objects before planning
1 parent 6608430 commit 4dedc25

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tasks/terraform-apply/action.yml

+11
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ inputs:
2525
snowflake-warehouse:
2626
description: The Snowflake warehouse
2727
required: true
28+
import-state:
29+
description: Imports existing state of existing objects
30+
required: true
31+
default: 'false'
2832

2933
runs:
3034
using: "composite"
@@ -70,6 +74,13 @@ runs:
7074
shell: bash
7175
working-directory: ${{ inputs.working-directory }}
7276

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+
7384
- name: Terraform Plan
7485
id: plan
7586
if: github.event_name == 'pull_request'

0 commit comments

Comments
 (0)