Skip to content

add debug ci workflow steps #671

add debug ci workflow steps

add debug ci workflow steps #671

Workflow file for this run

name: terraform-ci

Check failure on line 1 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

Cannot define both `uses` and `steps` at the same time for the following jobs: ci
on:
pull_request:
permissions:
actions: read
checks: read
contents: read
pull-requests: write
security-events: write
jobs:
ci:
steps:
# Add this step to clear the Terraform cache directory
- name: Clear Terraform Cache
run: rm -rf .terraform
# This ensures the cache directory is deleted before reinitializing Terraform
# Add this step to reinitialize Terraform with the -upgrade flag
- name: Initialize Terraform with upgrade
run: terraform init -upgrade
# This step ensures that all modules and providers are upgraded and reinitialized
uses: SPHTech-Platform/reusable-workflows/.github/workflows/terraform.yaml@v2
with:
upload_sarif: true