File tree Expand file tree Collapse file tree 6 files changed +7
-7
lines changed Expand file tree Collapse file tree 6 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 44
44
GITHUB_APP_INSTALLATION_ID : ${{ inputs.gh_app_installation_id || vars.GH_APP_INSTALLATION_ID }}
45
45
GITHUB_APP_PEM_FILE : ${{ secrets.gh_app_pem_file || secrets.GH_APP_PEM_FILE }}
46
46
TF_WORKSPACE : ${{ inputs.gh_owner || vars.GH_OWNER }}
47
- TF_VAR_path : iac/${{ inputs.path || 'test.yaml' }}
47
+ TF_VAR_path : ../ iac/${{ inputs.path || 'test.yaml' }}
48
48
49
49
jobs :
50
50
terraform :
@@ -74,12 +74,12 @@ jobs:
74
74
75
75
- name : Terraform init
76
76
id : init
77
- run : terraform init
77
+ run : terraform -chdir=terraform init
78
78
79
79
- name : Terraform plan
80
80
id : plan
81
81
if : github.event_name == 'pull_request'
82
- run : terraform plan -no-color -input=false
82
+ run : terraform -chdir=terraform plan -no-color -input=false
83
83
continue-on-error : true
84
84
85
85
- name : Terraform plan as the PR comment
@@ -138,4 +138,4 @@ jobs:
138
138
139
139
- name : Terraform apply
140
140
if : github.ref == 'refs/heads/main' && github.event_name == 'push'
141
- run : terraform apply -auto-approve -input=false
141
+ run : terraform -chdir=terraform apply -auto-approve -input=false
Original file line number Diff line number Diff line change @@ -211,9 +211,9 @@ export GITHUB_APP_PEM_FILE=$(cat <app-private-key.pem>)
211
211
export TF_WORKSPACE="$GITHUB_OWNER"
212
212
export TF_VAR_path="test.yaml"
213
213
214
- terraform init
215
- terraform plan
216
- terraform apply
214
+ terraform -chdir=terraform init
215
+ terraform -chdir=terraform plan
216
+ terraform -chdir=terraform apply
217
217
` ` `
218
218
219
219
# # Testing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments