Skip to content

Commit 421fc0a

Browse files
committed
add debug ci workflow steps
1 parent 8c78ffb commit 421fc0a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@ permissions:
99
security-events: write
1010
jobs:
1111
ci:
12+
steps:
13+
# Add this step to clear the Terraform cache directory
14+
- name: Clear Terraform Cache
15+
run: rm -rf .terraform
16+
# This ensures the cache directory is deleted before reinitializing Terraform
17+
18+
# Add this step to reinitialize Terraform with the -upgrade flag
19+
- name: Initialize Terraform with upgrade
20+
run: terraform init -upgrade
21+
# This step ensures that all modules and providers are upgraded and reinitialized
1222
uses: SPHTech-Platform/reusable-workflows/.github/workflows/terraform.yaml@v2
1323
with:
1424
upload_sarif: true

0 commit comments

Comments
 (0)