chore: update plan workflow

This commit is contained in:
Gaia 2026-04-10 12:00:10 -03:00
parent ed0807c345
commit 7bbef1beb7

View File

@ -34,7 +34,7 @@ jobs:
TF_CLOUD_TOKEN: ${{ secrets.TF_CLOUD_TOKEN }}
run: |
mkdir -p ~/.terraform.d/credentials
cat > ~/.terraform.d/credentials/tfcred.tfrc << EOF
cat > ~/.terraform.d/credentials/tfcred.tfrc << 'EOF'
credentials "app.terraform.io" {
token = "$TF_CLOUD_TOKEN"
}
@ -54,3 +54,8 @@ EOF
working-directory: ./terraform
run: |
terraform plan -no-color 2>&1 | tee /tmp/plan_output.txt
- name: Upload Plan Output
if: always()
run: |
cat /tmp/plan_output.txt || echo "No plan output"