Skip to content

Commit eee1514

Browse files
only need to do second import if we don't have the state
1 parent 4dedc25 commit eee1514

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tasks/terraform-apply/action.yml

+6
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,12 @@ runs:
9999
if: github.event_name != 'pull_request'
100100
run: |
101101
terraform apply -auto-approve
102+
shell: bash
103+
working-directory: ${{ inputs.working-directory }}
104+
105+
- name: Terraform Apply (to fix state)
106+
if: ${{ github.event_name != 'pull_request' && inputs.import-state == 'false' }}
107+
run: |
102108
terraform apply -auto-approve
103109
shell: bash
104110
working-directory: ${{ inputs.working-directory }}

0 commit comments

Comments
 (0)