@@ -91,20 +91,19 @@ jobs:
9191
9292 - name : Setup Terraform tfvars
9393 uses : nowactions/envsubst@v1
94- working-directory : ./examples/aws
9594 with :
96- input : ./example.tfvars
97- output : ./terraform.tfvars
95+ input : ./examples/aws/ example.tfvars
96+ output : ./examples/aws/ terraform.tfvars
9897 env :
9998 DNS_SUBDOMAIN : ${{secrets.DNS_SUBDOMAIN}}
10099 DNS_ZONE_ID : ${{secrets.DNS_ZONE_ID}}
101100
102101 - name : Setup Terraform
103- working-directory : ./examples/aws
104102 uses : hashicorp/setup-terraform@v1
105103
106104 # - name: Terraform Format
107105 # id: fmt
106+ # working-directory: ./examples/aws
108107 # run: terraform fmt -check
109108
110109 - name : Terraform Init
@@ -120,7 +119,6 @@ jobs:
120119 continue-on-error : true
121120
122121 - uses : actions/github-script@v3
123- working-directory : ./examples/aws
124122 if : github.event_name == 'pull_request'
125123 env :
126124 PLAN : " terraform\n ${{ steps.plan.outputs.stdout }}"
@@ -167,20 +165,19 @@ jobs:
167165
168166 - name : Setup Terraform tfvars
169167 uses : nowactions/envsubst@v1
170- working-directory : ./examples/azure
171168 with :
172- input : ./example.tfvars
173- output : ./terraform.tfvars
169+ input : ./examples/azure/ example.tfvars
170+ output : ./examples/azure/ terraform.tfvars
174171 env :
175172 DNS_SUBDOMAIN : ${{secrets.DNS_SUBDOMAIN}}
176173 DNS_ZONE_NAME : ${{secrets.DNS_ZONE_NAME}}
177174
178175 - name : Setup Terraform
179- working-directory : ./examples/azure
180176 uses : hashicorp/setup-terraform@v1
181177
182178 # - name: Terraform Format
183179 # id: fmt
180+ # working-directory: ./examples/azure
184181 # run: terraform fmt -check
185182
186183 - name : Terraform Init
@@ -196,7 +193,6 @@ jobs:
196193 continue-on-error : true
197194
198195 - uses : actions/github-script@v3
199- working-directory : ./examples/azure
200196 if : github.event_name == 'pull_request'
201197 env :
202198 PLAN : " terraform\n ${{ steps.plan.outputs.stdout }}"
@@ -231,4 +227,3 @@ jobs:
231227 working-directory : ./examples/azure
232228 if : (github.event_name == 'release') || (github.event_name == 'push' && github.ref == 'refs/heads/main')
233229 run : terraform apply -auto-approve
234-
0 commit comments