chore: update plan workflow
This commit is contained in:
parent
ed0807c345
commit
7bbef1beb7
@ -34,7 +34,7 @@ jobs:
|
|||||||
TF_CLOUD_TOKEN: ${{ secrets.TF_CLOUD_TOKEN }}
|
TF_CLOUD_TOKEN: ${{ secrets.TF_CLOUD_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ~/.terraform.d/credentials
|
mkdir -p ~/.terraform.d/credentials
|
||||||
cat > ~/.terraform.d/credentials/tfcred.tfrc << EOF
|
cat > ~/.terraform.d/credentials/tfcred.tfrc << 'EOF'
|
||||||
credentials "app.terraform.io" {
|
credentials "app.terraform.io" {
|
||||||
token = "$TF_CLOUD_TOKEN"
|
token = "$TF_CLOUD_TOKEN"
|
||||||
}
|
}
|
||||||
@ -54,3 +54,8 @@ EOF
|
|||||||
working-directory: ./terraform
|
working-directory: ./terraform
|
||||||
run: |
|
run: |
|
||||||
terraform plan -no-color 2>&1 | tee /tmp/plan_output.txt
|
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"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user