Skip to content

Commit 3930b15

Browse files
authored
Merge pull request #11 from dougdaly/mlops-poc-terraform-github
update for repeated runs
2 parents 6cf2686 + 842aecd commit 3930b15

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/terraform-apply.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ jobs:
7272
working-directory: ${{ env.TF_WORKING_DIR }}
7373
run: terraform init
7474

75+
- name: Terraform state debug
76+
working-directory: ${{ env.TF_WORKING_DIR }}
77+
run: |
78+
terraform workspace show
79+
terraform state list || true
80+
7581
- name: Terraform apply
7682
working-directory: ${{ env.TF_WORKING_DIR }}
7783
env:

.github/workflows/terraform-plan.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@ jobs:
7474
working-directory: ${{ env.TF_WORKING_DIR }}
7575
run: terraform init
7676

77+
- name: Terraform state debug
78+
working-directory: ${{ env.TF_WORKING_DIR }}
79+
run: |
80+
terraform workspace show
81+
terraform state list || true
82+
7783
- name: Terraform validate
7884
working-directory: ${{ env.TF_WORKING_DIR }}
7985
run: terraform validate

0 commit comments

Comments
 (0)